#4A1F97#4A1F97
#4A1F97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.179 H 291.9°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F97 |
|---|---|
| RGB | rgb(74, 31, 151) |
| HSL | hsl(262, 66%, 36%) |
| HSV | hsv(262, 79%, 59%) |
| CMYK | cmyk(51%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(25.77, 46.98, -57.69) |
| CIE-LCH | lch(25.77, 74.40, 309.16°) |
| OKLab | oklab(38.15% 0.0665 -0.1657) |
| OKLCH | oklch(38.15% 0.179 291.9) |
| XYZ | xyz(8.8984, 4.6698, 29.7047) |
| Luminance | 0.0467 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.30
Indigo
#4B0082
ΔE00 5.17
Indigo (survey)
#380282
ΔE00 5.65
Ultramarine
#2000B1
ΔE00 6.45
Rebeccapurple
#663399
ΔE00 6.55
Royal
#0C1793
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F97 #6C971F
analogous
#1F3097 #4A1F97 #861F97
triadic
#4A1F97 #974A1F #1F974A
tetradic
#4A1F97 #971F30 #6C971F #1F9786
square
#4A1F97 #971F30 #6C971F #1F9786
split-complementary
#4A1F97 #97861F #30971F
monochromatic
#180A31 #311564 #4A1F97 #6329CA #8554DC
Accessibility & contrast
On white
10.86
#4A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4A1F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F97
10.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F97 | 1.00 | 10.86 | 1.93 | 10.86 |
| #FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30415B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4a1f97; /* rgb */ color: rgb(74, 31, 151); /* oklch */ color: oklch(38.1% 0.179 291.9);
Tailwind
colors: {
custom: {
50: '#8560b7',
500: '#4a1f97',
950: '#000000',
},
}SCSS
$custom: #4a1f97; $custom-light: #8560b7; $custom-dark: #000000;
JSON
{
"hex": "#4a1f97",
"rgb": {
"r": 74,
"g": 31,
"b": 151
},
"hsl": {
"h": 261.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.38145,
"c": 0.17854,
"h": 291.9
},
"luminance": 0.0467
}Semantic roles & 50–950 ramp
primary
#4A1F97
secondary
#98BF52
accent
#E93FAC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980