#42218C#42218C
#42218C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 289.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #42218C |
|---|---|
| RGB | rgb(66, 33, 140) |
| HSL | hsl(259, 62%, 34%) |
| HSV | hsv(259, 76%, 55%) |
| CMYK | cmyk(52.9%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(24.13, 41.72, -53.62) |
| CIE-LCH | lch(24.13, 67.94, 307.88°) |
| OKLab | oklab(36.46% 0.0555 -0.1541) |
| OKLCH | oklch(36.46% 0.164 289.8) |
| XYZ | xyz(7.5229, 4.1391, 25.2084) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.02
Indigo
#4B0082
ΔE00 5.12
Indigo Blue
#3A18B1
ΔE00 5.51
Royal
#0C1793
ΔE00 5.82
Midnight Blue
#191970
ΔE00 6.95
Cobalt Blue
#030AA7
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42218C #6B8C21
analogous
#21358C #42218C #78218C
triadic
#42218C #8C4221 #218C42
tetradic
#42218C #8C2135 #6B8C21 #218C78
square
#42218C #8C2135 #6B8C21 #218C78
split-complementary
#42218C #8C7821 #358C21
monochromatic
#130A29 #2B155A #42218C #592DBE #7A51D6
Accessibility & contrast
On white
11.49
#42218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#42218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42218C
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42218C | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#273E55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #42218c; /* rgb */ color: rgb(66, 33, 140); /* oklch */ color: oklch(36.5% 0.164 289.8);
Tailwind
colors: {
custom: {
50: '#7f60af',
500: '#42218c',
950: '#000000',
},
}SCSS
$custom: #42218c; $custom-light: #7f60af; $custom-dark: #000000;
JSON
{
"hex": "#42218c",
"rgb": {
"r": 66,
"g": 33,
"b": 140
},
"hsl": {
"h": 258.505,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.36457,
"c": 0.16377,
"h": 289.8
},
"luminance": 0.04139
}Semantic roles & 50–950 ramp
primary
#42218C
secondary
#99B94F
accent
#E543B3
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F