#42167C#42167C
#42167C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 296.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #42167C |
|---|---|
| RGB | rgb(66, 22, 124) |
| HSL | hsl(266, 70%, 29%) |
| HSV | hsv(266, 82%, 49%) |
| CMYK | cmyk(46.8%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(20.78, 42.43, -49.04) |
| CIE-LCH | lch(20.78, 64.85, 310.87°) |
| OKLab | oklab(33.65% 0.0694 -0.1406) |
| OKLCH | oklch(33.65% 0.157 296.3) |
| XYZ | xyz(6.1708, 3.1872, 19.3549) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.98
Indigo (survey)
#380282
ΔE00 3.34
Royal Purple (survey)
#4B006E
ΔE00 4.33
Midnight Blue
#191970
ΔE00 6.52
Royal
#0C1793
ΔE00 7.02
Darkblue
#00008B
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42167C #507C16
analogous
#161D7C #42167C #75167C
triadic
#42167C #7C4216 #167C42
tetradic
#42167C #7C161D #507C16 #167C75
square
#42167C #7C161D #507C16 #167C75
split-complementary
#42167C #7C7516 #1D7C16
monochromatic
#0E051A #260D48 #42167C #5E1FB0 #7B32DB
Accessibility & contrast
On white
12.83
#42167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#42167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42167C
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42167C | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#323349
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #42167c; /* rgb */ color: rgb(66, 22, 124); /* oklch */ color: oklch(33.6% 0.157 296.3);
Tailwind
colors: {
custom: {
50: '#7d59a3',
500: '#42167c',
950: '#000000',
},
}SCSS
$custom: #42167c; $custom-light: #7d59a3; $custom-dark: #000000;
JSON
{
"hex": "#42167c",
"rgb": {
"r": 66,
"g": 22,
"b": 124
},
"hsl": {
"h": 265.882,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.33646,
"c": 0.15674,
"h": 296.3
},
"luminance": 0.03187
}Semantic roles & 50–950 ramp
primary
#42167C
secondary
#7FB13D
accent
#ED3BA0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F