#42166C#42166C
#42166C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.139 H 302.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #42166C |
|---|---|
| RGB | rgb(66, 22, 108) |
| HSL | hsl(271, 66%, 25%) |
| HSV | hsv(271, 80%, 42%) |
| CMYK | cmyk(38.9%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(19.29, 38.20, -41.18) |
| CIE-LCH | lch(19.29, 56.17, 312.85°) |
| OKLab | oklab(32.14% 0.0741 -0.1175) |
| OKLCH | oklch(32.14% 0.139 302.3) |
| XYZ | xyz(5.2398, 2.8148, 14.4517) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.35
Indigo
#4B0082
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 5.44
Dark Indigo
#1F0954
ΔE00 6.79
Midnight Blue
#191970
ΔE00 7.21
Plum Purple
#4E0550
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42166C #406C16
analogous
#17166C #42166C #6C166B
triadic
#42166C #6C4216 #166C42
tetradic
#42166C #6C1716 #406C16 #166B6C
square
#42166C #6C1716 #406C16 #166B6C
split-complementary
#42166C #6B6C16 #166C17
monochromatic
#100519 #230C39 #42166C #61209F #802BD2
Accessibility & contrast
On white
13.44
#42166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#42166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42166C
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42166C | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#392C40
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #42166c; /* rgb */ color: rgb(66, 22, 108); /* oklch */ color: oklch(32.1% 0.139 302.3);
Tailwind
colors: {
custom: {
50: '#7b5897',
500: '#42166c',
950: '#000000',
},
}SCSS
$custom: #42166c; $custom-light: #7b5897; $custom-dark: #000000;
JSON
{
"hex": "#42166c",
"rgb": {
"r": 66,
"g": 22,
"b": 108
},
"hsl": {
"h": 270.698,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.32144,
"c": 0.13891,
"h": 302.3
},
"luminance": 0.02815
}Semantic roles & 50–950 ramp
primary
#42166C
secondary
#6EA23C
accent
#E93F92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E