#51219C#51219C
#51219C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 294.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #51219C |
|---|---|
| RGB | rgb(81, 33, 156) |
| HSL | hsl(263, 65%, 37%) |
| HSV | hsv(263, 79%, 61%) |
| CMYK | cmyk(48.1%, 78.8%, 0%, 38.8%) |
| CIE-LAB | lab(27.40, 48.47, -58.05) |
| CIE-LCH | lch(27.40, 75.63, 309.86°) |
| OKLab | oklab(39.62% 0.0744 -0.1665) |
| OKLCH | oklch(39.62% 0.182 294.1) |
| XYZ | xyz(9.9363, 5.2370, 31.9334) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.51
Rebeccapurple
#663399
ΔE00 5.52
Indigo
#4B0082
ΔE00 5.87
Violet Blue
#510AC9
ΔE00 6.11
Indigo (survey)
#380282
ΔE00 6.78
Ultramarine
#2000B1
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51219C #6C9C21
analogous
#212E9C #51219C #8F219C
triadic
#51219C #9C5121 #219C51
tetradic
#51219C #9C212E #6C9C21 #219C8F
square
#51219C #9C212E #6C9C21 #219C8F
split-complementary
#51219C #9C8F21 #2E9C21
monochromatic
#1D0C37 #371669 #51219C #6B2CCF #8E5BDC
Accessibility & contrast
On white
10.26
#51219C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#51219C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51219C
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51219C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51219C | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3A435E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #51219c; /* rgb */ color: rgb(81, 33, 156); /* oklch */ color: oklch(39.6% 0.182 294.1);
Tailwind
colors: {
custom: {
50: '#8a62ba',
500: '#51219c',
950: '#000000',
},
}SCSS
$custom: #51219c; $custom-light: #8a62ba; $custom-dark: #000000;
JSON
{
"hex": "#51219c",
"rgb": {
"r": 81,
"g": 33,
"b": 156
},
"hsl": {
"h": 263.415,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.39616,
"c": 0.18239,
"h": 294.1
},
"luminance": 0.05237
}Semantic roles & 50–950 ramp
primary
#51219C
secondary
#98C158
accent
#E840A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81