#4A2097#4A2097
#4A2097 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.178 H 291.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2097 |
|---|---|
| RGB | rgb(74, 32, 151) |
| HSL | hsl(261, 65%, 36%) |
| HSV | hsv(261, 79%, 59%) |
| CMYK | cmyk(51%, 78.8%, 0%, 40.8%) |
| CIE-LAB | lab(25.93, 46.53, -57.43) |
| CIE-LCH | lch(25.93, 73.91, 309.01°) |
| OKLab | oklab(38.26% 0.0657 -0.165) |
| OKLCH | oklch(38.26% 0.178 291.7) |
| XYZ | xyz(8.9249, 4.7229, 29.7135) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.35
Indigo
#4B0082
ΔE00 5.32
Indigo (survey)
#380282
ΔE00 5.79
Rebeccapurple
#663399
ΔE00 6.44
Ultramarine
#2000B1
ΔE00 6.56
Royal
#0C1793
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2097 #6D9720
analogous
#203297 #4A2097 #852097
triadic
#4A2097 #974A20 #20974A
tetradic
#4A2097 #972032 #6D9720 #209785
square
#4A2097 #972032 #6D9720 #209785
split-complementary
#4A2097 #978520 #329720
monochromatic
#190B32 #311564 #4A2097 #632BC9 #8556DB
Accessibility & contrast
On white
10.80
#4A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4A2097 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2097
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2097 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2097 | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4a2097; /* rgb */ color: rgb(74, 32, 151); /* oklch */ color: oklch(38.3% 0.178 291.7);
Tailwind
colors: {
custom: {
50: '#8561b7',
500: '#4a2097',
950: '#000000',
},
}SCSS
$custom: #4a2097; $custom-light: #8561b7; $custom-dark: #000000;
JSON
{
"hex": "#4a2097",
"rgb": {
"r": 74,
"g": 32,
"b": 151
},
"hsl": {
"h": 261.176,
"s": 65.027,
"l": 35.882
},
"oklch": {
"l": 0.38255,
"c": 0.17756,
"h": 291.7
},
"luminance": 0.04723
}Semantic roles & 50–950 ramp
primary
#4A2097
secondary
#99BF54
accent
#E840AD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980