#4A1B97#4A1B97
#4A1B97 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.182 H 292.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1B97 |
|---|---|
| RGB | rgb(74, 27, 151) |
| HSL | hsl(263, 70%, 35%) |
| HSV | hsv(263, 82%, 59%) |
| CMYK | cmyk(51%, 82.1%, 0%, 40.8%) |
| CIE-LAB | lab(25.18, 48.70, -58.67) |
| CIE-LCH | lch(25.18, 76.25, 309.70°) |
| OKLab | oklab(37.73% 0.0694 -0.1685) |
| OKLCH | oklch(37.73% 0.182 292.4) |
| XYZ | xyz(8.8003, 4.4738, 29.6720) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.22
Indigo
#4B0082
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 5.16
Ultramarine
#2000B1
ΔE00 6.11
Royal
#0C1793
ΔE00 6.53
Cobalt Blue
#030AA7
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1B97 #68971B
analogous
#1B2A97 #4A1B97 #881B97
triadic
#4A1B97 #974A1B #1B974A
tetradic
#4A1B97 #971B2A #68971B #1B9788
square
#4A1B97 #971B2A #68971B #1B9788
split-complementary
#4A1B97 #97881B #2A971B
monochromatic
#17082F #311263 #4A1B97 #6324CB #854DDF
Accessibility & contrast
On white
11.08
#4A1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#4A1B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1B97
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1B97 | 1.00 | 11.08 | 1.89 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#30405A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4a1b97; /* rgb */ color: rgb(74, 27, 151); /* oklch */ color: oklch(37.7% 0.182 292.4);
Tailwind
colors: {
custom: {
50: '#855eb7',
500: '#4a1b97',
950: '#000000',
},
}SCSS
$custom: #4a1b97; $custom-light: #855eb7; $custom-dark: #000000;
JSON
{
"hex": "#4a1b97",
"rgb": {
"r": 74,
"g": 27,
"b": 151
},
"hsl": {
"h": 262.742,
"s": 69.663,
"l": 34.902
},
"oklch": {
"l": 0.37734,
"c": 0.18225,
"h": 292.4
},
"luminance": 0.04474
}Semantic roles & 50–950 ramp
primary
#4A1B97
secondary
#95C14C
accent
#EC3BA9
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980