#51187F#51187F
#51187F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.160 H 304.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #51187F |
|---|---|
| RGB | rgb(81, 24, 127) |
| HSL | hsl(273, 68%, 30%) |
| HSV | hsv(273, 81%, 50%) |
| CMYK | cmyk(36.2%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(23.45, 44.87, -46.48) |
| CIE-LCH | lch(23.45, 64.61, 313.99°) |
| OKLab | oklab(36.05% 0.0904 -0.1325) |
| OKLCH | oklch(36.05% 0.16 304.3) |
| XYZ | xyz(7.5499, 3.9349, 20.4363) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.15
Royal Purple (survey)
#4B006E
ΔE00 4.02
Indigo (survey)
#380282
ΔE00 5.40
Rebeccapurple
#663399
ΔE00 7.24
Indigo Blue
#3A18B1
ΔE00 8.59
Purple (survey)
#7E1E9C
ΔE00 8.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51187F #467F18
analogous
#1E187F #51187F #7F187A
triadic
#51187F #7F5118 #187F51
tetradic
#51187F #7F1E18 #467F18 #187A7F
square
#51187F #7F1E18 #467F18 #187A7F
split-complementary
#51187F #7A7F18 #187F1E
monochromatic
#10051A #300E4C #51187F #7222B2 #9138D9
Accessibility & contrast
On white
11.75
#51187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#51187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51187F
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51187F | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#48334B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #51187f; /* rgb */ color: rgb(81, 24, 127); /* oklch */ color: oklch(36.1% 0.160 304.3);
Tailwind
colors: {
custom: {
50: '#875ca5',
500: '#51187f',
950: '#000000',
},
}SCSS
$custom: #51187f; $custom-light: #875ca5; $custom-dark: #000000;
JSON
{
"hex": "#51187f",
"rgb": {
"r": 81,
"g": 24,
"b": 127
},
"hsl": {
"h": 273.204,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.36054,
"c": 0.16039,
"h": 304.3
},
"luminance": 0.03935
}Semantic roles & 50–950 ramp
primary
#51187F
secondary
#73B33F
accent
#EB3D8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F