#422298#422298
#422298 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.177 H 286.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).
Color values
| HEX | #422298 |
|---|---|
| RGB | rgb(66, 34, 152) |
| HSL | hsl(256, 63%, 36%) |
| HSV | hsv(256, 78%, 60%) |
| CMYK | cmyk(56.6%, 77.6%, 0%, 40.4%) |
| CIE-LAB | lab(25.47, 44.71, -58.84) |
| CIE-LCH | lch(25.47, 73.90, 307.23°) |
| OKLab | oklab(37.76% 0.0514 -0.1693) |
| OKLCH | oklch(37.76% 0.177 286.9) |
| XYZ | xyz(8.4846, 4.5688, 30.1345) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.83
Royal
#0C1793
ΔE00 5.58
Indigo (survey)
#380282
ΔE00 5.88
Ultramarine
#2000B1
ΔE00 5.99
Indigo
#4B0082
ΔE00 6.10
Cobalt Blue
#030AA7
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#422298 #789822
analogous
#223D98 #422298 #7D2298
triadic
#422298 #984222 #229842
tetradic
#422298 #98223D #789822 #22987D
square
#422298 #98223D #789822 #22987D
split-complementary
#422298 #987D22 #3D9822
monochromatic
#170C34 #2C1766 #422298 #582DCA #7D5ADA
Accessibility & contrast
On white
10.97
#422298 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#422298 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #422298
10.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##422298 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##422298 | 1.00 | 10.97 | 1.91 | 10.97 |
| #FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.97 | 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: #422298; /* rgb */ color: rgb(66, 34, 152); /* oklch */ color: oklch(37.8% 0.177 286.9);
Tailwind
colors: {
custom: {
50: '#8161b7',
500: '#422298',
950: '#000000',
},
}SCSS
$custom: #422298; $custom-light: #8161b7; $custom-dark: #000000;
JSON
{
"hex": "#422298",
"rgb": {
"r": 66,
"g": 34,
"b": 152
},
"hsl": {
"h": 256.271,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.37755,
"c": 0.17698,
"h": 286.9
},
"luminance": 0.04569
}Semantic roles & 50–950 ramp
primary
#422298
secondary
#A2BE57
accent
#E641BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980