#52198E#52198E
#52198E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.175 H 299.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).
Color values
| HEX | #52198E |
|---|---|
| RGB | rgb(82, 25, 142) |
| HSL | hsl(269, 70%, 33%) |
| HSV | hsv(269, 82%, 56%) |
| CMYK | cmyk(42.3%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(25.08, 48.33, -53.22) |
| CIE-LCH | lch(25.08, 71.89, 312.24°) |
| OKLab | oklab(37.63% 0.0865 -0.1523) |
| OKLCH | oklch(37.63% 0.175 299.6) |
| XYZ | xyz(8.7086, 4.4420, 25.9845) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.55
Indigo (survey)
#380282
ΔE00 5.29
Royal Purple (survey)
#4B006E
ΔE00 6.03
Indigo Blue
#3A18B1
ΔE00 6.29
Rebeccapurple
#663399
ΔE00 6.31
Ultramarine
#2000B1
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#52198E #558E19
analogous
#191A8E #52198E #8D198E
triadic
#52198E #8E5219 #198E52
tetradic
#52198E #8E191A #558E19 #198E8D
square
#52198E #8E191A #558E19 #198E8D
split-complementary
#52198E #8E8D19 #1A8E19
monochromatic
#160726 #34105A #52198E #7022C2 #8F43DE
Accessibility & contrast
On white
11.12
#52198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#52198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #52198E
11.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##52198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##52198E | 1.00 | 11.12 | 1.89 | 11.12 |
| #FFFFFF | 11.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#433A54
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #52198e; /* rgb */ color: rgb(82, 25, 142); /* oklch */ color: oklch(37.6% 0.175 299.6);
Tailwind
colors: {
custom: {
50: '#895eb0',
500: '#52198e',
950: '#000000',
},
}SCSS
$custom: #52198e; $custom-light: #895eb0; $custom-dark: #000000;
JSON
{
"hex": "#52198e",
"rgb": {
"r": 82,
"g": 25,
"b": 142
},
"hsl": {
"h": 269.231,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.37633,
"c": 0.17514,
"h": 299.6
},
"luminance": 0.04442
}Semantic roles & 50–950 ramp
primary
#52198E
secondary
#83BF44
accent
#ED3B96
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980