#42108D#42108D
#42108D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.180 H 291.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #42108D |
|---|---|
| RGB | rgb(66, 16, 141) |
| HSL | hsl(264, 80%, 31%) |
| HSV | hsv(264, 89%, 55%) |
| CMYK | cmyk(53.2%, 88.7%, 0%, 44.7%) |
| CIE-LAB | lab(21.77, 49.14, -58.13) |
| CIE-LCH | lch(21.77, 76.11, 310.21°) |
| OKLab | oklab(34.86% 0.0668 -0.1671) |
| OKLCH | oklch(34.86% 0.18 291.8) |
| XYZ | xyz(7.2384, 3.4516, 25.4790) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.69
Indigo
#4B0082
ΔE00 2.98
Indigo Blue
#3A18B1
ΔE00 5.38
Royal
#0C1793
ΔE00 5.65
Ultramarine
#2000B1
ΔE00 5.87
Cobalt Blue
#030AA7
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42108D #5B8D10
analogous
#101C8D #42108D #80108D
triadic
#42108D #8D4210 #108D42
tetradic
#42108D #8D101C #5B8D10 #108D80
square
#42108D #8D101C #5B8D10 #108D80
split-complementary
#42108D #8D8010 #1C8D10
monochromatic
#0F041F #280A56 #42108D #5C16C4 #7930E7
Accessibility & contrast
On white
12.42
#42108D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#42108D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42108D
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42108D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42108D | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#273852
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #42108d; /* rgb */ color: rgb(66, 16, 141); /* oklch */ color: oklch(34.9% 0.180 291.8);
Tailwind
colors: {
custom: {
50: '#8058b0',
500: '#42108d',
950: '#000000',
},
}SCSS
$custom: #42108d; $custom-light: #8058b0; $custom-dark: #000000;
JSON
{
"hex": "#42108d",
"rgb": {
"r": 66,
"g": 16,
"b": 141
},
"hsl": {
"h": 264,
"s": 79.618,
"l": 30.784
},
"oklch": {
"l": 0.34855,
"c": 0.17992,
"h": 291.8
},
"luminance": 0.03452
}Semantic roles & 50–950 ramp
primary
#42108D
secondary
#8AC237
accent
#F632A8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980