#511A7F#511A7F
#511A7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.158 H 304.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #511A7F |
|---|---|
| RGB | rgb(81, 26, 127) |
| HSL | hsl(273, 66%, 30%) |
| HSV | hsv(273, 80%, 50%) |
| CMYK | cmyk(36.2%, 79.5%, 0%, 50.2%) |
| CIE-LAB | lab(23.74, 44.05, -46.02) |
| CIE-LCH | lch(23.74, 63.71, 313.75°) |
| OKLab | oklab(36.25% 0.0886 -0.1312) |
| OKLCH | oklch(36.25% 0.158 304) |
| XYZ | xyz(7.5926, 4.0204, 20.4506) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.45
Royal Purple (survey)
#4B006E
ΔE00 4.27
Indigo (survey)
#380282
ΔE00 5.60
Rebeccapurple
#663399
ΔE00 7.01
Indigo Blue
#3A18B1
ΔE00 8.61
Purple (survey)
#7E1E9C
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511A7F #487F1A
analogous
#1E1A7F #511A7F #7F1A7B
triadic
#511A7F #7F511A #1A7F51
tetradic
#511A7F #7F1E1A #487F1A #1A7B7F
square
#511A7F #7F1E1A #487F1A #1A7B7F
split-complementary
#511A7F #7B7F1A #1A7F1E
monochromatic
#100519 #31104C #511A7F #7124B2 #913CD7
Accessibility & contrast
On white
11.64
#511A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#511A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511A7F
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511A7F | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#48344C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #511a7f; /* rgb */ color: rgb(81, 26, 127); /* oklch */ color: oklch(36.3% 0.158 304.0);
Tailwind
colors: {
custom: {
50: '#875da5',
500: '#511a7f',
950: '#000000',
},
}SCSS
$custom: #511a7f; $custom-light: #875da5; $custom-dark: #000000;
JSON
{
"hex": "#511a7f",
"rgb": {
"r": 81,
"g": 26,
"b": 127
},
"hsl": {
"h": 272.673,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.36252,
"c": 0.15828,
"h": 304
},
"luminance": 0.0402
}Semantic roles & 50–950 ramp
primary
#511A7F
secondary
#75B342
accent
#E93F8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F