#422198#422198
#422198 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.178 H 287.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #422198 |
|---|---|
| RGB | rgb(66, 33, 152) |
| HSL | hsl(257, 64%, 36%) |
| HSV | hsv(257, 78%, 60%) |
| CMYK | cmyk(56.6%, 78.3%, 0%, 40.4%) |
| CIE-LAB | lab(25.30, 45.20, -59.12) |
| CIE-LCH | lch(25.30, 74.42, 307.40°) |
| OKLab | oklab(37.64% 0.0521 -0.1702) |
| OKLCH | oklch(37.64% 0.178 287) |
| XYZ | xyz(8.4564, 4.5125, 30.1251) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.76
Royal
#0C1793
ΔE00 5.52
Indigo (survey)
#380282
ΔE00 5.71
Ultramarine
#2000B1
ΔE00 5.86
Indigo
#4B0082
ΔE00 5.94
Cobalt Blue
#030AA7
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#422198 #779821
analogous
#213C98 #422198 #7E2198
triadic
#422198 #984221 #219842
tetradic
#422198 #98213C #779821 #21987E
square
#422198 #98213C #779821 #21987E
split-complementary
#422198 #987E21 #3C9821
monochromatic
#160B33 #2C1666 #422198 #582CCA #7D59DB
Accessibility & contrast
On white
11.04
#422198 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#422198 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #422198
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##422198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##422198 | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#1B435C
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #422198; /* rgb */ color: rgb(66, 33, 152); /* oklch */ color: oklch(37.6% 0.178 287.0);
Tailwind
colors: {
custom: {
50: '#8161b7',
500: '#422198',
950: '#000000',
},
}SCSS
$custom: #422198; $custom-light: #8161b7; $custom-dark: #000000;
JSON
{
"hex": "#422198",
"rgb": {
"r": 66,
"g": 33,
"b": 152
},
"hsl": {
"h": 256.639,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.37635,
"c": 0.17797,
"h": 287
},
"luminance": 0.04513
}Semantic roles & 50–950 ramp
primary
#422198
secondary
#A2BF56
accent
#E740B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980