#4A2197#4A2197
#4A2197 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.177 H 291.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2197 |
|---|---|
| RGB | rgb(74, 33, 151) |
| HSL | hsl(261, 64%, 36%) |
| HSV | hsv(261, 78%, 59%) |
| CMYK | cmyk(51%, 78.1%, 0%, 40.8%) |
| CIE-LAB | lab(26.09, 46.06, -57.17) |
| CIE-LCH | lch(26.09, 73.42, 308.86°) |
| OKLab | oklab(38.37% 0.0649 -0.1642) |
| OKLCH | oklch(38.37% 0.177 291.6) |
| XYZ | xyz(8.9522, 4.7776, 29.7226) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.40
Indigo
#4B0082
ΔE00 5.47
Indigo (survey)
#380282
ΔE00 5.94
Rebeccapurple
#663399
ΔE00 6.34
Ultramarine
#2000B1
ΔE00 6.66
Royal
#0C1793
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2197 #6E9721
analogous
#213397 #4A2197 #852197
triadic
#4A2197 #974A21 #21974A
tetradic
#4A2197 #972133 #6E9721 #219785
square
#4A2197 #972133 #6E9721 #219785
split-complementary
#4A2197 #978521 #339721
monochromatic
#190B33 #311665 #4A2197 #632CC9 #8558DA
Accessibility & contrast
On white
10.74
#4A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#4A2197 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2197
10.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2197 | 1.00 | 10.74 | 1.96 | 10.74 |
| #FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4a2197; /* rgb */ color: rgb(74, 33, 151); /* oklch */ color: oklch(38.4% 0.177 291.6);
Tailwind
colors: {
custom: {
50: '#8561b7',
500: '#4a2197',
950: '#000000',
},
}SCSS
$custom: #4a2197; $custom-light: #8561b7; $custom-dark: #000000;
JSON
{
"hex": "#4a2197",
"rgb": {
"r": 74,
"g": 33,
"b": 151
},
"hsl": {
"h": 260.847,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.38368,
"c": 0.17656,
"h": 291.6
},
"luminance": 0.04778
}Semantic roles & 50–950 ramp
primary
#4A2197
secondary
#9ABE55
accent
#E741AD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980