#42176C#42176C
#42176C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.138 H 302.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #42176C |
|---|---|
| RGB | rgb(66, 23, 108) |
| HSL | hsl(270, 65%, 26%) |
| HSV | hsv(270, 79%, 42%) |
| CMYK | cmyk(38.9%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(19.45, 37.74, -40.92) |
| CIE-LCH | lch(19.45, 55.66, 312.68°) |
| OKLab | oklab(32.26% 0.0732 -0.1167) |
| OKLCH | oklch(32.26% 0.138 302.1) |
| XYZ | xyz(5.2593, 2.8537, 14.4582) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.53
Indigo
#4B0082
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 5.56
Dark Indigo
#1F0954
ΔE00 6.83
Midnight Blue
#191970
ΔE00 7.18
Plum Purple
#4E0550
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42176C #416C17
analogous
#18176C #42176C #6C176B
triadic
#42176C #6C4217 #176C42
tetradic
#42176C #6C1817 #416C17 #176B6C
square
#42176C #6C1817 #416C17 #176B6C
split-complementary
#42176C #6B6C17 #176C18
monochromatic
#0F0519 #230C3A #42176C #61229E #802CD1
Accessibility & contrast
On white
13.37
#42176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#42176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42176C
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42176C | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#392D40
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #42176c; /* rgb */ color: rgb(66, 23, 108); /* oklch */ color: oklch(32.3% 0.138 302.1);
Tailwind
colors: {
custom: {
50: '#7b5997',
500: '#42176c',
950: '#000000',
},
}SCSS
$custom: #42176c; $custom-light: #7b5997; $custom-dark: #000000;
JSON
{
"hex": "#42176c",
"rgb": {
"r": 66,
"g": 23,
"b": 108
},
"hsl": {
"h": 270.353,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.32258,
"c": 0.13775,
"h": 302.1
},
"luminance": 0.02854
}Semantic roles & 50–950 ramp
primary
#42176C
secondary
#6FA23D
accent
#E84093
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E