#42159F#42159F
#42159F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.196 H 286.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #42159F |
|---|---|
| RGB | rgb(66, 21, 159) |
| HSL | hsl(260, 77%, 35%) |
| HSV | hsv(260, 87%, 62%) |
| CMYK | cmyk(58.5%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(24.31, 52.18, -65.03) |
| CIE-LCH | lch(24.31, 83.38, 308.75°) |
| OKLab | oklab(37.18% 0.0569 -0.1873) |
| OKLCH | oklch(37.18% 0.196 286.9) |
| XYZ | xyz(8.7711, 4.1973, 33.1421) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.68
Ultramarine
#2000B1
ΔE00 4.20
Cobalt Blue
#030AA7
ΔE00 4.86
Royal Blue (survey)
#0504AA
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 5.05
Indigo
#4B0082
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42159F #729F15
analogous
#152D9F #42159F #87159F
triadic
#42159F #9F4215 #159F42
tetradic
#42159F #9F152D #729F15 #159F87
square
#42159F #9F152D #729F15 #159F87
split-complementary
#42159F #9F8715 #2D9F15
monochromatic
#150733 #2C0E69 #42159F #581CD5 #7C48E7
Accessibility & contrast
On white
11.42
#42159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#42159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42159F
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42159F | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#12425E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42159f; /* rgb */ color: rgb(66, 21, 159); /* oklch */ color: oklch(37.2% 0.196 286.9);
Tailwind
colors: {
custom: {
50: '#835cbd',
500: '#42159f',
950: '#000000',
},
}SCSS
$custom: #42159f; $custom-light: #835cbd; $custom-dark: #000000;
JSON
{
"hex": "#42159f",
"rgb": {
"r": 66,
"g": 21,
"b": 159
},
"hsl": {
"h": 259.565,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.37175,
"c": 0.19573,
"h": 286.9
},
"luminance": 0.04198
}Semantic roles & 50–950 ramp
primary
#42159F
secondary
#9EC848
accent
#F335B5
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981