#4A2AB7#4A2AB7
#4A2AB7 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.205 H 283.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2AB7 |
|---|---|
| RGB | rgb(74, 42, 183) |
| HSL | hsl(254, 63%, 44%) |
| HSV | hsv(254, 77%, 72%) |
| CMYK | cmyk(59.6%, 77%, 0%, 28.2%) |
| CIE-LAB | lab(30.71, 50.85, -68.89) |
| CIE-LCH | lch(30.71, 85.62, 306.43°) |
| OKLab | oklab(42.54% 0.0492 -0.1985) |
| OKLCH | oklch(42.54% 0.205 283.9) |
| XYZ | xyz(12.1966, 6.5299, 45.4083) |
| Luminance | 0.0653 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.82
Violet Blue
#510AC9
ΔE00 4.12
Purple Blue
#5D21D0
ΔE00 4.19
Blurple
#5539CC
ΔE00 4.75
Blue With A Hint Of Purple
#533CC6
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2AB7 #97B72A
analogous
#2A51B7 #4A2AB7 #912AB7
triadic
#4A2AB7 #B74A2A #2AB74A
tetradic
#4A2AB7 #B72A51 #97B72A #2AB791
square
#4A2AB7 #B72A51 #97B72A #2AB791
split-complementary
#4A2AB7 #B7912A #51B72A
monochromatic
#221353 #361F85 #4A2AB7 #6949D5 #927BE1
Accessibility & contrast
On white
9.11
#4A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#4A2AB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2AB7
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2AB7 | 1.00 | 9.11 | 2.31 | 9.11 |
| #FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4a2ab7; /* rgb */ color: rgb(74, 42, 183); /* oklch */ color: oklch(42.5% 0.205 283.9);
Tailwind
colors: {
custom: {
50: '#8a68ce',
500: '#4a2ab7',
950: '#000000',
},
}SCSS
$custom: #4a2ab7; $custom-light: #8a68ce; $custom-dark: #000000;
JSON
{
"hex": "#4a2ab7",
"rgb": {
"r": 74,
"g": 42,
"b": 183
},
"hsl": {
"h": 253.617,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.42542,
"c": 0.20456,
"h": 283.9
},
"luminance": 0.06531
}Semantic roles & 50–950 ramp
primary
#4A2AB7
secondary
#B6C974
accent
#E642C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82