#511F6F#511F6F
#511F6F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.135 H 309.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).
Color values
| HEX | #511F6F |
|---|---|
| RGB | rgb(81, 31, 111) |
| HSL | hsl(278, 56%, 28%) |
| HSV | hsv(278, 72%, 44%) |
| CMYK | cmyk(27%, 72.1%, 0%, 56.5%) |
| CIE-LAB | lab(23.26, 37.85, -36.58) |
| CIE-LCH | lch(23.26, 52.64, 315.98°) |
| OKLab | oklab(35.51% 0.0864 -0.1034) |
| OKLCH | oklch(35.51% 0.135 309.9) |
| XYZ | xyz(6.7520, 3.8771, 15.4285) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.70
Indigo
#4B0082
ΔE00 6.13
Plum Purple
#4E0550
ΔE00 7.15
Darkish Purple
#751973
ΔE00 7.70
Indigo (survey)
#380282
ΔE00 8.07
Rebeccapurple
#663399
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511F6F #3D6F1F
analogous
#291F6F #511F6F #6F1F65
triadic
#511F6F #6F511F #1F6F51
tetradic
#511F6F #6F291F #3D6F1F #1F656F
square
#511F6F #6F291F #3D6F1F #1F656F
split-complementary
#511F6F #656F1F #1F6F29
monochromatic
#110718 #2E123F #511F6F #742C9F #953FC9
Accessibility & contrast
On white
11.83
#511F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#511F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511F6F
11.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511F6F | 1.00 | 11.83 | 1.78 | 11.83 |
| #FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#4D3044
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #511f6f; /* rgb */ color: rgb(81, 31, 111); /* oklch */ color: oklch(35.5% 0.135 309.9);
Tailwind
colors: {
custom: {
50: '#855f99',
500: '#511f6f',
950: '#000000',
},
}SCSS
$custom: #511f6f; $custom-light: #855f99; $custom-dark: #000000;
JSON
{
"hex": "#511f6f",
"rgb": {
"r": 81,
"g": 31,
"b": 111
},
"hsl": {
"h": 277.5,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.35511,
"c": 0.1348,
"h": 309.9
},
"luminance": 0.03877
}Semantic roles & 50–950 ramp
primary
#511F6F
secondary
#69A347
accent
#E04881
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E