#512187
Purple
HEX
RGB
HSL
About #512187 Purple
#512187 is a purple color. In the RGB color model, it is composed of 81 red, 33 green, and 135 blue. In the HSL color space, it has a hue of 268°, saturation of 61%, and lightness of 33%.
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 & Gradients
Use #512187 in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
268°
Hue
61%
Saturation
33%
Lightness
Purple
Color Harmonies
Colors that work well with #512187 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #512187 against white and black backgrounds.
Aa#512187 on White
Contrast Ratio10.95:1
AA ✓AA Large ✓AAA ✓
Aa#512187 on Black
Contrast Ratio1.92:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #512187 across different color formats.
| Format | Value |
|---|---|
| HEX | #512187 |
| RGB | rgb(81, 33, 135) |
| HSL | hsl(268, 61%, 33%) |
| RGB Decimal | 81, 33, 135 |
| RGB Percent | 31.8%, 12.9%, 52.9% |
| CMYK (approx.) | 40%, 76%, 0%, 47% |
Related Palettes
12 palettes using #512187 or similar colors