#42208E#42208E
#42208E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.167 H 289.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #42208E |
|---|---|
| RGB | rgb(66, 32, 142) |
| HSL | hsl(259, 63%, 34%) |
| HSV | hsv(259, 77%, 56%) |
| CMYK | cmyk(53.5%, 77.5%, 0%, 44.3%) |
| CIE-LAB | lab(24.14, 42.80, -54.84) |
| CIE-LCH | lch(24.14, 69.57, 307.97°) |
| OKLab | oklab(36.53% 0.0558 -0.1576) |
| OKLCH | oklch(36.53% 0.167 289.5) |
| XYZ | xyz(7.6443, 4.1439, 25.9830) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.90
Indigo
#4B0082
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.16
Royal
#0C1793
ΔE00 5.66
Cobalt Blue
#030AA7
ΔE00 6.68
Ultramarine
#2000B1
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42208E #6C8E20
analogous
#20358E #42208E #79208E
triadic
#42208E #8E4220 #208E42
tetradic
#42208E #8E2035 #6C8E20 #208E79
square
#42208E #8E2035 #6C8E20 #208E79
split-complementary
#42208E #8E7920 #358E20
monochromatic
#14092A #2B155C #42208E #592BC0 #7A51D8
Accessibility & contrast
On white
11.48
#42208E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#42208E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42208E
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42208E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42208E | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #42208e; /* rgb */ color: rgb(66, 32, 142); /* oklch */ color: oklch(36.5% 0.167 289.5);
Tailwind
colors: {
custom: {
50: '#7f60b0',
500: '#42208e',
950: '#000000',
},
}SCSS
$custom: #42208e; $custom-light: #7f60b0; $custom-dark: #000000;
JSON
{
"hex": "#42208e",
"rgb": {
"r": 66,
"g": 32,
"b": 142
},
"hsl": {
"h": 258.545,
"s": 63.218,
"l": 34.118
},
"oklch": {
"l": 0.36527,
"c": 0.16722,
"h": 289.5
},
"luminance": 0.04144
}Semantic roles & 50–950 ramp
primary
#42208E
secondary
#9ABB4F
accent
#E642B3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980