#422197#422197
#422197 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.177 H 287.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #422197 |
|---|---|
| RGB | rgb(66, 33, 151) |
| HSL | hsl(257, 64%, 36%) |
| HSV | hsv(257, 78%, 59%) |
| CMYK | cmyk(56.3%, 78.1%, 0%, 40.8%) |
| CIE-LAB | lab(25.20, 44.91, -58.67) |
| CIE-LCH | lch(25.20, 73.89, 307.44°) |
| OKLab | oklab(37.54% 0.0524 -0.1688) |
| OKLCH | oklch(37.54% 0.177 287.2) |
| XYZ | xyz(8.3749, 4.4799, 29.6956) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.90
Royal
#0C1793
ΔE00 5.52
Indigo (survey)
#380282
ΔE00 5.63
Indigo
#4B0082
ΔE00 5.86
Ultramarine
#2000B1
ΔE00 5.95
Cobalt Blue
#030AA7
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#422197 #769721
analogous
#213B97 #422197 #7D2197
triadic
#422197 #974221 #219742
tetradic
#422197 #97213B #769721 #21977D
square
#422197 #97213B #769721 #21977D
split-complementary
#422197 #977D21 #3B9721
monochromatic
#160B33 #2C1665 #422197 #582CC9 #7C58DA
Accessibility & contrast
On white
11.08
#422197 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#422197 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #422197
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##422197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##422197 | 1.00 | 11.08 | 1.90 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#1C435B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #422197; /* rgb */ color: rgb(66, 33, 151); /* oklch */ color: oklch(37.5% 0.177 287.2);
Tailwind
colors: {
custom: {
50: '#8161b7',
500: '#422197',
950: '#000000',
},
}SCSS
$custom: #422197; $custom-light: #8161b7; $custom-dark: #000000;
JSON
{
"hex": "#422197",
"rgb": {
"r": 66,
"g": 33,
"b": 151
},
"hsl": {
"h": 256.78,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.37535,
"c": 0.1768,
"h": 287.2
},
"luminance": 0.0448
}Semantic roles & 50–950 ramp
primary
#422197
secondary
#A1BE55
accent
#E741B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980