#511C7A#511C7A
#511C7A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.151 H 305.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).
Color values
| HEX | #511C7A |
|---|---|
| RGB | rgb(81, 28, 122) |
| HSL | hsl(274, 63%, 29%) |
| HSV | hsv(274, 77%, 48%) |
| CMYK | cmyk(33.6%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(23.62, 41.95, -43.04) |
| CIE-LCH | lch(23.62, 60.10, 314.27°) |
| OKLab | oklab(36.04% 0.0879 -0.1224) |
| OKLCH | oklch(36.04% 0.151 305.7) |
| XYZ | xyz(7.3207, 3.9850, 18.7921) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.15
Indigo
#4B0082
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 6.26
Rebeccapurple
#663399
ΔE00 7.22
Darkish Purple
#751973
ΔE00 8.57
Plum Purple
#4E0550
ΔE00 8.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511C7A #457A1C
analogous
#221C7A #511C7A #7A1C74
triadic
#511C7A #7A511C #1C7A51
tetradic
#511C7A #7A221C #457A1C #1C747A
square
#511C7A #7A221C #457A1C #1C747A
split-complementary
#511C7A #747A1C #1C7A22
monochromatic
#110619 #301148 #511C7A #7227AC #923ED3
Accessibility & contrast
On white
11.69
#511C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#511C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511C7A
11.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511C7A | 1.00 | 11.69 | 1.80 | 11.69 |
| #FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4A334A
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #511c7a; /* rgb */ color: rgb(81, 28, 122); /* oklch */ color: oklch(36.0% 0.151 305.7);
Tailwind
colors: {
custom: {
50: '#865ea1',
500: '#511c7a',
950: '#000000',
},
}SCSS
$custom: #511c7a; $custom-light: #865ea1; $custom-dark: #000000;
JSON
{
"hex": "#511c7a",
"rgb": {
"r": 81,
"g": 28,
"b": 122
},
"hsl": {
"h": 273.83,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.36039,
"c": 0.15069,
"h": 305.7
},
"luminance": 0.03985
}Semantic roles & 50–950 ramp
primary
#511C7A
secondary
#72AE44
accent
#E64289
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F