#511B6E#511B6E
#511B6E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.139 H 310.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #511B6E |
|---|---|
| RGB | rgb(81, 27, 110) |
| HSL | hsl(279, 61%, 27%) |
| HSV | hsv(279, 75%, 43%) |
| CMYK | cmyk(26.4%, 75.5%, 0%, 56.9%) |
| CIE-LAB | lab(22.51, 39.51, -37.14) |
| CIE-LCH | lch(22.51, 54.23, 316.77°) |
| OKLab | oklab(34.95% 0.0911 -0.1051) |
| OKLCH | oklch(34.95% 0.139 310.9) |
| XYZ | xyz(6.5992, 3.6591, 15.1075) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.97
Indigo
#4B0082
ΔE00 5.69
Plum Purple
#4E0550
ΔE00 6.67
Darkish Purple
#751973
ΔE00 7.62
Indigo (survey)
#380282
ΔE00 7.73
Deep Violet
#490648
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511B6E #386E1B
analogous
#281B6E #511B6E #6E1B62
triadic
#511B6E #6E511B #1B6E51
tetradic
#511B6E #6E281B #386E1B #1B626E
square
#511B6E #6E281B #386E1B #1B626E
split-complementary
#511B6E #626E1B #1B6E28
monochromatic
#120619 #2D0F3D #511B6E #75279F #9936CE
Accessibility & contrast
On white
12.13
#511B6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#511B6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511B6E
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511B6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511B6E | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0D376C
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #511b6e; /* rgb */ color: rgb(81, 27, 110); /* oklch */ color: oklch(35.0% 0.139 310.9);
Tailwind
colors: {
custom: {
50: '#855d98',
500: '#511b6e',
950: '#000000',
},
}SCSS
$custom: #511b6e; $custom-light: #855d98; $custom-dark: #000000;
JSON
{
"hex": "#511b6e",
"rgb": {
"r": 81,
"g": 27,
"b": 110
},
"hsl": {
"h": 279.036,
"s": 60.584,
"l": 26.863
},
"oklch": {
"l": 0.34952,
"c": 0.13909,
"h": 310.9
},
"luminance": 0.03659
}Semantic roles & 50–950 ramp
primary
#511B6E
secondary
#64A342
accent
#E4447C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E