#422398#422398
#422398 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.176 H 286.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).
Color values
| HEX | #422398 |
|---|---|
| RGB | rgb(66, 35, 152) |
| HSL | hsl(256, 63%, 37%) |
| HSV | hsv(256, 77%, 60%) |
| CMYK | cmyk(56.6%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(25.64, 44.22, -58.55) |
| CIE-LCH | lch(25.64, 73.37, 307.06°) |
| OKLab | oklab(37.88% 0.0506 -0.1685) |
| OKLCH | oklch(37.88% 0.176 286.7) |
| XYZ | xyz(8.5136, 4.6268, 30.1441) |
| Luminance | 0.0463 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.91
Royal
#0C1793
ΔE00 5.65
Indigo (survey)
#380282
ΔE00 6.05
Ultramarine
#2000B1
ΔE00 6.13
Cobalt Blue
#030AA7
ΔE00 6.25
Indigo
#4B0082
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#422398 #799823
analogous
#233F98 #422398 #7D2398
triadic
#422398 #984223 #239842
tetradic
#422398 #98233F #799823 #23987D
square
#422398 #98233F #799823 #23987D
split-complementary
#422398 #987D23 #3F9823
monochromatic
#170C35 #2C1866 #422398 #582ECA #7D5CD9
Accessibility & contrast
On white
10.91
#422398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#422398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #422398
10.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##422398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##422398 | 1.00 | 10.91 | 1.93 | 10.91 |
| #FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#1B445C
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #422398; /* rgb */ color: rgb(66, 35, 152); /* oklch */ color: oklch(37.9% 0.176 286.7);
Tailwind
colors: {
custom: {
50: '#8162b7',
500: '#422398',
950: '#000000',
},
}SCSS
$custom: #422398; $custom-light: #8162b7; $custom-dark: #000000;
JSON
{
"hex": "#422398",
"rgb": {
"r": 66,
"g": 35,
"b": 152
},
"hsl": {
"h": 255.897,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.37877,
"c": 0.17596,
"h": 286.7
},
"luminance": 0.04627
}Semantic roles & 50–950 ramp
primary
#422398
secondary
#A3BE59
accent
#E642BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980