#511F6E#511F6E
#511F6E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.134 H 310.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).
Color values
| HEX | #511F6E |
|---|---|
| RGB | rgb(81, 31, 110) |
| HSL | hsl(278, 56%, 28%) |
| HSV | hsv(278, 72%, 43%) |
| CMYK | cmyk(26.4%, 71.8%, 0%, 56.9%) |
| CIE-LAB | lab(23.19, 37.61, -36.05) |
| CIE-LCH | lch(23.19, 52.10, 316.21°) |
| OKLab | oklab(35.43% 0.0865 -0.1019) |
| OKLCH | oklch(35.43% 0.134 310.3) |
| XYZ | xyz(6.6973, 3.8552, 15.1402) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.76
Indigo
#4B0082
ΔE00 6.30
Plum Purple
#4E0550
ΔE00 6.98
Darkish Purple
#751973
ΔE00 7.64
Indigo (survey)
#380282
ΔE00 8.23
Deep Violet
#490648
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511F6E #3C6E1F
analogous
#2A1F6E #511F6E #6E1F63
triadic
#511F6E #6E511F #1F6E51
tetradic
#511F6E #6E2A1F #3C6E1F #1F636E
square
#511F6E #6E2A1F #3C6E1F #1F636E
split-complementary
#511F6E #636E1F #1F6E2A
monochromatic
#120718 #2E123E #511F6E #742C9E #963FC9
Accessibility & contrast
On white
11.86
#511F6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#511F6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511F6E
11.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511F6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511F6E | 1.00 | 11.86 | 1.77 | 11.86 |
| #FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#13386C
Tritanopia (blue-blind)
#4D3044
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #511f6e; /* rgb */ color: rgb(81, 31, 110); /* oklch */ color: oklch(35.4% 0.134 310.3);
Tailwind
colors: {
custom: {
50: '#855f98',
500: '#511f6e',
950: '#000000',
},
}SCSS
$custom: #511f6e; $custom-light: #855f98; $custom-dark: #000000;
JSON
{
"hex": "#511f6e",
"rgb": {
"r": 81,
"g": 31,
"b": 110
},
"hsl": {
"h": 277.975,
"s": 56.028,
"l": 27.647
},
"oklch": {
"l": 0.35434,
"c": 0.13368,
"h": 310.3
},
"luminance": 0.03855
}Semantic roles & 50–950 ramp
primary
#511F6E
secondary
#68A247
accent
#DF4880
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E