#4A2AB5#4A2AB5
#4A2AB5 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.202 H 284.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2AB5 |
|---|---|
| RGB | rgb(74, 42, 181) |
| HSL | hsl(254, 62%, 44%) |
| HSV | hsv(254, 77%, 71%) |
| CMYK | cmyk(59.1%, 76.8%, 0%, 29%) |
| CIE-LAB | lab(30.51, 50.27, -68.02) |
| CIE-LCH | lch(30.51, 84.58, 306.47°) |
| OKLab | oklab(42.34% 0.0498 -0.196) |
| OKLCH | oklch(42.34% 0.202 284.3) |
| XYZ | xyz(11.9899, 6.4472, 44.3197) |
| Luminance | 0.0645 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.75
Violet Blue
#510AC9
ΔE00 4.25
Purple Blue
#5D21D0
ΔE00 4.40
Blue With A Hint Of Purple
#533CC6
ΔE00 4.91
Blurple
#5539CC
ΔE00 4.94
Ocean Blue
#4F42B5
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2AB5 #95B52A
analogous
#2A4FB5 #4A2AB5 #8F2AB5
triadic
#4A2AB5 #B54A2A #2AB54A
tetradic
#4A2AB5 #B52A4F #95B52A #2AB58F
square
#4A2AB5 #B52A4F #95B52A #2AB58F
split-complementary
#4A2AB5 #B58F2A #4FB52A
monochromatic
#211352 #361E83 #4A2AB5 #6848D4 #9179E0
Accessibility & contrast
On white
9.17
#4A2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#4A2AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2AB5
9.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2AB5 | 1.00 | 9.17 | 2.29 | 9.17 |
| #FFFFFF | 9.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#05526E
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4a2ab5; /* rgb */ color: rgb(74, 42, 181); /* oklch */ color: oklch(42.3% 0.202 284.3);
Tailwind
colors: {
custom: {
50: '#8968cc',
500: '#4a2ab5',
950: '#000000',
},
}SCSS
$custom: #4a2ab5; $custom-light: #8968cc; $custom-dark: #000000;
JSON
{
"hex": "#4a2ab5",
"rgb": {
"r": 74,
"g": 42,
"b": 181
},
"hsl": {
"h": 253.813,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.42344,
"c": 0.20225,
"h": 284.3
},
"luminance": 0.06448
}Semantic roles & 50–950 ramp
primary
#4A2AB5
secondary
#B4C873
accent
#E542C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82