#42166E#42166E
#42166E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.141 H 301.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #42166E |
|---|---|
| RGB | rgb(66, 22, 110) |
| HSL | hsl(270, 67%, 26%) |
| HSV | hsv(270, 80%, 43%) |
| CMYK | cmyk(40%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(19.47, 38.72, -42.19) |
| CIE-LCH | lch(19.47, 57.27, 312.55°) |
| OKLab | oklab(32.32% 0.0736 -0.1204) |
| OKLCH | oklch(32.32% 0.141 301.4) |
| XYZ | xyz(5.3475, 2.8578, 15.0187) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.35
Indigo
#4B0082
ΔE00 4.36
Indigo (survey)
#380282
ΔE00 5.11
Dark Indigo
#1F0954
ΔE00 6.88
Midnight Blue
#191970
ΔE00 7.04
Plum Purple
#4E0550
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42166E #426E16
analogous
#16166E #42166E #6E166E
triadic
#42166E #6E4216 #166E42
tetradic
#42166E #6E1616 #426E16 #166E6E
square
#42166E #6E1616 #426E16 #166E6E
split-complementary
#42166E #6E6E16 #166E16
monochromatic
#0F051A #230C3B #42166E #6120A1 #7F2AD4
Accessibility & contrast
On white
13.36
#42166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#42166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42166E
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42166E | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#382D41
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #42166e; /* rgb */ color: rgb(66, 22, 110); /* oklch */ color: oklch(32.3% 0.141 301.4);
Tailwind
colors: {
custom: {
50: '#7b5998',
500: '#42166e',
950: '#000000',
},
}SCSS
$custom: #42166e; $custom-light: #7b5998; $custom-dark: #000000;
JSON
{
"hex": "#42166e",
"rgb": {
"r": 66,
"g": 22,
"b": 110
},
"hsl": {
"h": 270,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.32325,
"c": 0.14116,
"h": 301.4
},
"luminance": 0.02858
}Semantic roles & 50–950 ramp
primary
#42166E
secondary
#70A43C
accent
#EA3E94
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E