#42186C#42186C
#42186C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.137 H 301.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).
Color values
| HEX | #42186C |
|---|---|
| RGB | rgb(66, 24, 108) |
| HSL | hsl(270, 64%, 26%) |
| HSV | hsv(270, 78%, 42%) |
| CMYK | cmyk(38.9%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(19.62, 37.26, -40.65) |
| CIE-LCH | lch(19.62, 55.14, 312.51°) |
| OKLab | oklab(32.38% 0.0722 -0.1159) |
| OKLCH | oklch(32.38% 0.137 301.9) |
| XYZ | xyz(5.2795, 2.8942, 14.4649) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.71
Indigo
#4B0082
ΔE00 4.93
Indigo (survey)
#380282
ΔE00 5.68
Dark Indigo
#1F0954
ΔE00 6.87
Midnight Blue
#191970
ΔE00 7.15
Plum Purple
#4E0550
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42186C #426C18
analogous
#18186C #42186C #6C186C
triadic
#42186C #6C4218 #186C42
tetradic
#42186C #6C1818 #426C18 #186C6C
square
#42186C #6C1818 #426C18 #186C6C
split-complementary
#42186C #6C6C18 #186C18
monochromatic
#0F0619 #230D3A #42186C #61239E #7F2ED0
Accessibility & contrast
On white
13.30
#42186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#42186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42186C
13.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42186C | 1.00 | 13.30 | 1.58 | 13.30 |
| #FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#392D41
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #42186c; /* rgb */ color: rgb(66, 24, 108); /* oklch */ color: oklch(32.4% 0.137 301.9);
Tailwind
colors: {
custom: {
50: '#7b5997',
500: '#42186c',
950: '#000000',
},
}SCSS
$custom: #42186c; $custom-light: #7b5997; $custom-dark: #000000;
JSON
{
"hex": "#42186c",
"rgb": {
"r": 66,
"g": 24,
"b": 108
},
"hsl": {
"h": 270,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.32375,
"c": 0.13654,
"h": 301.9
},
"luminance": 0.02894
}Semantic roles & 50–950 ramp
primary
#42186C
secondary
#70A23E
accent
#E74194
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E