#511C7F#511C7F
#511C7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.156 H 303.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #511C7F |
|---|---|
| RGB | rgb(81, 28, 127) |
| HSL | hsl(272, 64%, 30%) |
| HSV | hsv(272, 78%, 50%) |
| CMYK | cmyk(36.2%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(24.04, 43.19, -45.53) |
| CIE-LCH | lch(24.04, 62.76, 313.49°) |
| OKLab | oklab(36.46% 0.0867 -0.1297) |
| OKLCH | oklch(36.46% 0.156 303.8) |
| XYZ | xyz(7.6385, 4.1122, 20.4659) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.78
Royal Purple (survey)
#4B006E
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 6.78
Indigo Blue
#3A18B1
ΔE00 8.64
Purple (survey)
#7E1E9C
ΔE00 8.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511C7F #4A7F1C
analogous
#1F1C7F #511C7F #7F1C7B
triadic
#511C7F #7F511C #1C7F51
tetradic
#511C7F #7F1F1C #4A7F1C #1C7B7F
square
#511C7F #7F1F1C #4A7F1C #1C7B7F
split-complementary
#511C7F #7B7F1C #1C7F1F
monochromatic
#11061B #31114D #511C7F #7127B1 #9040D5
Accessibility & contrast
On white
11.52
#511C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#511C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511C7F
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511C7F | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #511c7f; /* rgb */ color: rgb(81, 28, 127); /* oklch */ color: oklch(36.5% 0.156 303.8);
Tailwind
colors: {
custom: {
50: '#875ea5',
500: '#511c7f',
950: '#000000',
},
}SCSS
$custom: #511c7f; $custom-light: #875ea5; $custom-dark: #000000;
JSON
{
"hex": "#511c7f",
"rgb": {
"r": 81,
"g": 28,
"b": 127
},
"hsl": {
"h": 272.121,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.36463,
"c": 0.15606,
"h": 303.8
},
"luminance": 0.04112
}Semantic roles & 50–950 ramp
primary
#511C7F
secondary
#77B344
accent
#E7418E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F