#52219C#52219C
#52219C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.182 H 294.6°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #52219C |
|---|---|
| RGB | rgb(82, 33, 156) |
| HSL | hsl(264, 65%, 37%) |
| HSV | hsv(264, 79%, 61%) |
| CMYK | cmyk(47.4%, 78.8%, 0%, 38.8%) |
| CIE-LAB | lab(27.52, 48.62, -57.85) |
| CIE-LCH | lch(27.52, 75.57, 310.05°) |
| OKLab | oklab(39.73% 0.0759 -0.1659) |
| OKLCH | oklch(39.73% 0.182 294.6) |
| XYZ | xyz(10.0226, 5.2816, 31.9374) |
| Luminance | 0.0528 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.63
Rebeccapurple
#663399
ΔE00 5.39
Indigo
#4B0082
ΔE00 5.87
Violet Blue
#510AC9
ΔE00 6.13
Indigo (survey)
#380282
ΔE00 6.87
Ultramarine
#2000B1
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#52219C #6B9C21
analogous
#212E9C #52219C #8F219C
triadic
#52219C #9C5221 #219C52
tetradic
#52219C #9C212E #6B9C21 #219C8F
square
#52219C #9C212E #6B9C21 #219C8F
split-complementary
#52219C #9C8F21 #2E9C21
monochromatic
#1D0C37 #371669 #52219C #6D2CCF #8F5BDC
Accessibility & contrast
On white
10.21
#52219C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#52219C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #52219C
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##52219C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##52219C | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3C435E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #52219c; /* rgb */ color: rgb(82, 33, 156); /* oklch */ color: oklch(39.7% 0.182 294.6);
Tailwind
colors: {
custom: {
50: '#8a62ba',
500: '#52219c',
950: '#000000',
},
}SCSS
$custom: #52219c; $custom-light: #8a62ba; $custom-dark: #000000;
JSON
{
"hex": "#52219c",
"rgb": {
"r": 82,
"g": 33,
"b": 156
},
"hsl": {
"h": 263.902,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.39729,
"c": 0.18245,
"h": 294.6
},
"luminance": 0.05282
}Semantic roles & 50–950 ramp
primary
#52219C
secondary
#97C158
accent
#E840A5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81