#42116C#42116C
#42116C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.144 H 303.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).
Color values
| HEX | #42116C |
|---|---|
| RGB | rgb(66, 17, 108) |
| HSL | hsl(272, 73%, 25%) |
| HSV | hsv(272, 84%, 42%) |
| CMYK | cmyk(38.9%, 84.3%, 0%, 57.6%) |
| CIE-LAB | lab(18.55, 40.33, -42.39) |
| CIE-LCH | lch(18.55, 58.50, 313.57°) |
| OKLab | oklab(31.63% 0.0786 -0.121) |
| OKLCH | oklch(31.63% 0.144 303) |
| XYZ | xyz(5.1533, 2.6419, 14.4229) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.61
Indigo
#4B0082
ΔE00 4.15
Indigo (survey)
#380282
ΔE00 4.98
Dark Indigo
#1F0954
ΔE00 6.67
Midnight Blue
#191970
ΔE00 7.41
Plum Purple
#4E0550
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42116C #3B6C11
analogous
#15116C #42116C #6C1169
triadic
#42116C #6C4211 #116C42
tetradic
#42116C #6C1511 #3B6C11 #11696C
square
#42116C #6C1511 #3B6C11 #11696C
split-complementary
#42116C #696C11 #116C15
monochromatic
#10041A #220937 #42116C #6219A1 #8322D6
Accessibility & contrast
On white
13.74
#42116C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#42116C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42116C
13.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42116C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42116C | 1.00 | 13.74 | 1.53 | 13.74 |
| #FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#392A3F
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #42116c; /* rgb */ color: rgb(66, 17, 108); /* oklch */ color: oklch(31.6% 0.144 303.0);
Tailwind
colors: {
custom: {
50: '#7b5697',
500: '#42116c',
950: '#000000',
},
}SCSS
$custom: #42116c; $custom-light: #7b5697; $custom-dark: #000000;
JSON
{
"hex": "#42116c",
"rgb": {
"r": 66,
"g": 17,
"b": 108
},
"hsl": {
"h": 272.308,
"s": 72.8,
"l": 24.51
},
"oklch": {
"l": 0.31628,
"c": 0.14429,
"h": 303
},
"luminance": 0.02642
}Semantic roles & 50–950 ramp
primary
#42116C
secondary
#68A435
accent
#EF388D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E