#42186F#42186F
#42186F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.140 H 300.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #42186F |
|---|---|
| RGB | rgb(66, 24, 111) |
| HSL | hsl(269, 64%, 26%) |
| HSV | hsv(269, 78%, 44%) |
| CMYK | cmyk(40.5%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(19.88, 38.06, -42.16) |
| CIE-LCH | lch(19.88, 56.80, 312.07°) |
| OKLab | oklab(32.64% 0.0714 -0.1204) |
| OKLCH | oklch(32.64% 0.14 300.7) |
| XYZ | xyz(5.4419, 2.9592, 15.3203) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.71
Indigo
#4B0082
ΔE00 4.50
Indigo (survey)
#380282
ΔE00 5.20
Midnight Blue
#191970
ΔE00 6.90
Dark Indigo
#1F0954
ΔE00 7.02
Dark Royal Blue
#02066F
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42186F #456F18
analogous
#18196F #42186F #6E186F
triadic
#42186F #6F4218 #186F42
tetradic
#42186F #6F1819 #456F18 #186F6E
square
#42186F #6F1819 #456F18 #186F6E
split-complementary
#42186F #6F6E18 #196F18
monochromatic
#0F0519 #240D3D #42186F #6023A1 #7E2FD2
Accessibility & contrast
On white
13.19
#42186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#42186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42186F
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42186F | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#382E42
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #42186f; /* rgb */ color: rgb(66, 24, 111); /* oklch */ color: oklch(32.6% 0.140 300.7);
Tailwind
colors: {
custom: {
50: '#7b5a99',
500: '#42186f',
950: '#000000',
},
}SCSS
$custom: #42186f; $custom-light: #7b5a99; $custom-dark: #000000;
JSON
{
"hex": "#42186f",
"rgb": {
"r": 66,
"g": 24,
"b": 111
},
"hsl": {
"h": 268.966,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.32644,
"c": 0.13997,
"h": 300.7
},
"luminance": 0.02959
}Semantic roles & 50–950 ramp
primary
#42186F
secondary
#73A53E
accent
#E74097
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E