#51167C#51167C
#51167C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 305.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).
Color values
| HEX | #51167C |
|---|---|
| RGB | rgb(81, 22, 124) |
| HSL | hsl(275, 70%, 29%) |
| HSV | hsv(275, 82%, 49%) |
| CMYK | cmyk(34.7%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(22.92, 44.93, -45.45) |
| CIE-LCH | lch(22.92, 63.90, 314.67°) |
| OKLab | oklab(35.6% 0.0929 -0.1294) |
| OKLCH | oklch(35.6% 0.159 305.7) |
| XYZ | xyz(7.3175, 3.7784, 19.4087) |
| Luminance | 0.0378 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.10
Royal Purple (survey)
#4B006E
ΔE00 3.48
Indigo (survey)
#380282
ΔE00 5.46
Rebeccapurple
#663399
ΔE00 7.68
Darkish Purple
#751973
ΔE00 8.85
Plum Purple
#4E0550
ΔE00 8.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51167C #417C16
analogous
#1E167C #51167C #7C1674
triadic
#51167C #7C5116 #167C51
tetradic
#51167C #7C1E16 #417C16 #16747C
square
#51167C #7C1E16 #417C16 #16747C
split-complementary
#51167C #747C16 #167C1E
monochromatic
#11051A #2F0D48 #51167C #731FB0 #9332DB
Accessibility & contrast
On white
11.96
#51167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#51167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51167C
11.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51167C | 1.00 | 11.96 | 1.76 | 11.96 |
| #FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#493149
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #51167c; /* rgb */ color: rgb(81, 22, 124); /* oklch */ color: oklch(35.6% 0.159 305.7);
Tailwind
colors: {
custom: {
50: '#875ba3',
500: '#51167c',
950: '#000000',
},
}SCSS
$custom: #51167c; $custom-light: #875ba3; $custom-dark: #000000;
JSON
{
"hex": "#51167c",
"rgb": {
"r": 81,
"g": 22,
"b": 124
},
"hsl": {
"h": 274.706,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.35602,
"c": 0.15934,
"h": 305.7
},
"luminance": 0.03778
}Semantic roles & 50–950 ramp
primary
#51167C
secondary
#6EB13D
accent
#ED3B86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F