#51166F#51166F
#51166F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 311.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #51166F |
|---|---|
| RGB | rgb(81, 22, 111) |
| HSL | hsl(280, 67%, 26%) |
| HSV | hsv(280, 80%, 44%) |
| CMYK | cmyk(27%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(21.84, 41.88, -38.88) |
| CIE-LCH | lch(21.84, 57.14, 317.13°) |
| OKLab | oklab(34.5% 0.0961 -0.1101) |
| OKLCH | oklch(34.5% 0.146 311.1) |
| XYZ | xyz(6.5489, 3.4710, 15.3608) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.05
Indigo
#4B0082
ΔE00 4.92
Plum Purple
#4E0550
ΔE00 6.62
Indigo (survey)
#380282
ΔE00 7.10
Darkish Purple
#751973
ΔE00 7.78
Deep Violet
#490648
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51166F #346F16
analogous
#24166F #51166F #6F1660
triadic
#51166F #6F5116 #166F51
tetradic
#51166F #6F2416 #346F16 #16606F
square
#51166F #6F2416 #346F16 #16606F
split-complementary
#51166F #606F16 #166F24
monochromatic
#13051A #2C0C3C #51166F #7620A2 #9B2BD5
Accessibility & contrast
On white
12.40
#51166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#51166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51166F
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51166F | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#03356D
Tritanopia (blue-blind)
#4D2B42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #51166f; /* rgb */ color: rgb(81, 22, 111); /* oklch */ color: oklch(34.5% 0.146 311.1);
Tailwind
colors: {
custom: {
50: '#865b99',
500: '#51166f',
950: '#000000',
},
}SCSS
$custom: #51166f; $custom-light: #865b99; $custom-dark: #000000;
JSON
{
"hex": "#51166f",
"rgb": {
"r": 81,
"g": 22,
"b": 111
},
"hsl": {
"h": 279.775,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.34502,
"c": 0.14617,
"h": 311.1
},
"luminance": 0.03471
}Semantic roles & 50–950 ramp
primary
#51166F
secondary
#5FA53C
accent
#EA3E78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E