#4E2AB2#4E2AB2
#4E2AB2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.198 H 286.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #4E2AB2 |
|---|---|
| RGB | rgb(78, 42, 178) |
| HSL | hsl(256, 62%, 43%) |
| HSV | hsv(256, 76%, 70%) |
| CMYK | cmyk(56.2%, 76.4%, 0%, 30.2%) |
| CIE-LAB | lab(30.61, 49.93, -66.06) |
| CIE-LCH | lch(30.61, 82.80, 307.08°) |
| OKLab | oklab(42.42% 0.0566 -0.1902) |
| OKLCH | oklch(42.42% 0.198 286.6) |
| XYZ | xyz(12.0033, 6.4893, 42.7309) |
| Luminance | 0.0649 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.99
Violet Blue
#510AC9
ΔE00 4.38
Purple Blue
#5D21D0
ΔE00 4.44
Blue With A Hint Of Purple
#533CC6
ΔE00 5.05
Blurple
#5539CC
ΔE00 5.10
Ocean Blue
#4F42B5
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E2AB2 #8EB22A
analogous
#2A4AB2 #4E2AB2 #922AB2
triadic
#4E2AB2 #B24E2A #2AB24E
tetradic
#4E2AB2 #B22A4A #8EB22A #2AB292
square
#4E2AB2 #B22A4A #8EB22A #2AB292
split-complementary
#4E2AB2 #B2922A #4AB22A
monochromatic
#23134F #381E80 #4E2AB2 #6B46D3 #9377DF
Accessibility & contrast
On white
9.14
#4E2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#4E2AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E2AB2
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E2AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E2AB2 | 1.00 | 9.14 | 2.30 | 9.14 |
| #FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#20516D
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4e2ab2; /* rgb */ color: rgb(78, 42, 178); /* oklch */ color: oklch(42.4% 0.198 286.6);
Tailwind
colors: {
custom: {
50: '#8b68ca',
500: '#4e2ab2',
950: '#000000',
},
}SCSS
$custom: #4e2ab2; $custom-light: #8b68ca; $custom-dark: #000000;
JSON
{
"hex": "#4e2ab2",
"rgb": {
"r": 78,
"g": 42,
"b": 178
},
"hsl": {
"h": 255.882,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.42421,
"c": 0.19839,
"h": 286.6
},
"luminance": 0.0649
}Semantic roles & 50–950 ramp
primary
#4E2AB2
secondary
#B0C771
accent
#E543BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82