#42166F#42166F
#42166F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 301.0°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #42166F |
|---|---|
| RGB | rgb(66, 22, 111) |
| HSL | hsl(270, 67%, 26%) |
| HSV | hsv(270, 80%, 44%) |
| CMYK | cmyk(40.5%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(19.56, 38.99, -42.69) |
| CIE-LCH | lch(19.56, 57.81, 312.40°) |
| OKLab | oklab(32.42% 0.0733 -0.1219) |
| OKLCH | oklch(32.42% 0.142 301) |
| XYZ | xyz(5.4022, 2.8797, 15.3071) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.37
Indigo
#4B0082
ΔE00 4.22
Indigo (survey)
#380282
ΔE00 4.95
Dark Indigo
#1F0954
ΔE00 6.94
Midnight Blue
#191970
ΔE00 6.97
Dark Royal Blue
#02066F
ΔE00 8.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42166F #436F16
analogous
#16166F #42166F #6E166F
triadic
#42166F #6F4216 #166F42
tetradic
#42166F #6F1616 #436F16 #166F6E
square
#42166F #6F1616 #436F16 #166F6E
split-complementary
#42166F #6F6E16 #166F16
monochromatic
#0F051A #240C3C #42166F #6020A2 #7F2BD5
Accessibility & contrast
On white
13.32
#42166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#42166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42166F
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42166F | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#382D42
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #42166f; /* rgb */ color: rgb(66, 22, 111); /* oklch */ color: oklch(32.4% 0.142 301.0);
Tailwind
colors: {
custom: {
50: '#7b5999',
500: '#42166f',
950: '#000000',
},
}SCSS
$custom: #42166f; $custom-light: #7b5999; $custom-dark: #000000;
JSON
{
"hex": "#42166f",
"rgb": {
"r": 66,
"g": 22,
"b": 111
},
"hsl": {
"h": 269.663,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.32416,
"c": 0.14227,
"h": 301
},
"luminance": 0.0288
}Semantic roles & 50–950 ramp
primary
#42166F
secondary
#71A53C
accent
#EA3E95
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E