#512D80
Purple
HEX
RGB
HSL
About #512D80 Purple
#512D80 is a purple color. In the RGB color model, it is composed of 81 red, 45 green, and 128 blue. In the HSL color space, it has a hue of 266°, saturation of 48%, and lightness of 34%.
This color has a low lightness value, making it a dark color great for text and bold accents. With moderate saturation, it appears balanced and versatile.
CSS Code
Use #512D80 in your CSS, SCSS, or Tailwind projects.
Color Properties
266°
Hue
48%
Saturation
34%
Lightness
Purple
Color Harmonies
Colors that work well with #512D80 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #512D80 against white and black backgrounds.
Aa#512D80 on White
Contrast Ratio10.31:1
AA ✓AA Large ✓AAA ✓
Aa#512D80 on Black
Contrast Ratio2.04:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #512D80 across different color formats.
| Format | Value |
|---|---|
| HEX | #512D80 |
| RGB | rgb(81, 45, 128) |
| HSL | hsl(266, 48%, 34%) |
| RGB Decimal | 81, 45, 128 |
| RGB Percent | 31.8%, 17.6%, 50.2% |
| CMYK (approx.) | 37%, 65%, 0%, 50% |
Related Palettes
12 palettes using #512D80 or similar colors