#4A1F96#4A1F96
#4A1F96 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.177 H 292.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F96 |
|---|---|
| RGB | rgb(74, 31, 150) |
| HSL | hsl(262, 66%, 35%) |
| HSV | hsv(262, 79%, 59%) |
| CMYK | cmyk(50.7%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(25.68, 46.71, -57.24) |
| CIE-LCH | lch(25.68, 73.88, 309.22°) |
| OKLab | oklab(38.05% 0.0668 -0.1644) |
| OKLCH | oklch(38.05% 0.177 292.1) |
| XYZ | xyz(8.8175, 4.6375, 29.2788) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.44
Indigo
#4B0082
ΔE00 5.08
Indigo (survey)
#380282
ΔE00 5.58
Rebeccapurple
#663399
ΔE00 6.54
Ultramarine
#2000B1
ΔE00 6.54
Royal
#0C1793
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F96 #6B961F
analogous
#1F2F96 #4A1F96 #861F96
triadic
#4A1F96 #964A1F #1F964A
tetradic
#4A1F96 #961F2F #6B961F #1F9686
square
#4A1F96 #961F2F #6B961F #1F9686
split-complementary
#4A1F96 #96861F #2F961F
monochromatic
#180A31 #311563 #4A1F96 #6329C9 #8554DC
Accessibility & contrast
On white
10.89
#4A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4A1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F96
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F96 | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#31415A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4a1f96; /* rgb */ color: rgb(74, 31, 150); /* oklch */ color: oklch(38.0% 0.177 292.1);
Tailwind
colors: {
custom: {
50: '#8560b6',
500: '#4a1f96',
950: '#000000',
},
}SCSS
$custom: #4a1f96; $custom-light: #8560b6; $custom-dark: #000000;
JSON
{
"hex": "#4a1f96",
"rgb": {
"r": 74,
"g": 31,
"b": 150
},
"hsl": {
"h": 261.681,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.38049,
"c": 0.17743,
"h": 292.1
},
"luminance": 0.04638
}Semantic roles & 50–950 ramp
primary
#4A1F96
secondary
#98BF52
accent
#E93FAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980