#4A2297#4A2297
#4A2297 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.176 H 291.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2297 |
|---|---|
| RGB | rgb(74, 34, 151) |
| HSL | hsl(261, 63%, 36%) |
| HSV | hsv(261, 77%, 59%) |
| CMYK | cmyk(51%, 77.5%, 0%, 40.8%) |
| CIE-LAB | lab(26.26, 45.59, -56.90) |
| CIE-LCH | lch(26.26, 72.91, 308.71°) |
| OKLab | oklab(38.48% 0.0641 -0.1634) |
| OKLCH | oklch(38.48% 0.176 291.4) |
| XYZ | xyz(8.9804, 4.8339, 29.7320) |
| Luminance | 0.0483 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.45
Indigo
#4B0082
ΔE00 5.63
Indigo (survey)
#380282
ΔE00 6.09
Rebeccapurple
#663399
ΔE00 6.24
Royal
#0C1793
ΔE00 6.77
Ultramarine
#2000B1
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2297 #6F9722
analogous
#223597 #4A2297 #852297
triadic
#4A2297 #974A22 #22974A
tetradic
#4A2297 #972235 #6F9722 #229785
square
#4A2297 #972235 #6F9722 #229785
split-complementary
#4A2297 #978522 #359722
monochromatic
#190C33 #321765 #4A2297 #622DC9 #855ADA
Accessibility & contrast
On white
10.68
#4A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#4A2297 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2297
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2297 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2297 | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4a2297; /* rgb */ color: rgb(74, 34, 151); /* oklch */ color: oklch(38.5% 0.176 291.4);
Tailwind
colors: {
custom: {
50: '#8562b7',
500: '#4a2297',
950: '#000000',
},
}SCSS
$custom: #4a2297; $custom-light: #8562b7; $custom-dark: #000000;
JSON
{
"hex": "#4a2297",
"rgb": {
"r": 74,
"g": 34,
"b": 151
},
"hsl": {
"h": 260.513,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.38483,
"c": 0.17553,
"h": 291.4
},
"luminance": 0.04834
}Semantic roles & 50–950 ramp
primary
#4A2297
secondary
#9BBE57
accent
#E642AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80