#4E2A9A#4E2A9A
#4E2A9A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.170 H 291.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #4E2A9A |
|---|---|
| RGB | rgb(78, 42, 154) |
| HSL | hsl(259, 57%, 38%) |
| HSV | hsv(259, 73%, 60%) |
| CMYK | cmyk(49.4%, 72.7%, 0%, 39.6%) |
| CIE-LAB | lab(28.40, 43.08, -55.20) |
| CIE-LCH | lch(28.40, 70.02, 307.97°) |
| OKLab | oklab(40.18% 0.0625 -0.1583) |
| OKLCH | oklch(40.18% 0.17 291.5) |
| XYZ | xyz(9.8009, 5.6084, 31.1317) |
| Luminance | 0.0561 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.99
Indigo Blue
#3A18B1
ΔE00 5.22
Darkslateblue
#483D8B
ΔE00 6.39
Blueberry
#464196
ΔE00 6.98
Violet Blue
#510AC9
ΔE00 7.03
Indigo
#4B0082
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E2A9A #769A2A
analogous
#2A3E9A #4E2A9A #862A9A
triadic
#4E2A9A #9A4E2A #2A9A4E
tetradic
#4E2A9A #9A2A3E #769A2A #2A9A86
square
#4E2A9A #9A2A3E #769A2A #2A9A86
split-complementary
#4E2A9A #9A862A #3E9A2A
monochromatic
#1D103A #361D6A #4E2A9A #6738C9 #8C68D6
Accessibility & contrast
On white
9.90
#4E2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#4E2A9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E2A9A
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E2A9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E2A9A | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#35475F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4e2a9a; /* rgb */ color: rgb(78, 42, 154); /* oklch */ color: oklch(40.2% 0.170 291.5);
Tailwind
colors: {
custom: {
50: '#8767b9',
500: '#4e2a9a',
950: '#000000',
},
}SCSS
$custom: #4e2a9a; $custom-light: #8767b9; $custom-dark: #000000;
JSON
{
"hex": "#4e2a9a",
"rgb": {
"r": 78,
"g": 42,
"b": 154
},
"hsl": {
"h": 259.286,
"s": 57.143,
"l": 38.431
},
"oklch": {
"l": 0.40185,
"c": 0.17025,
"h": 291.5
},
"luminance": 0.05609
}Semantic roles & 50–950 ramp
primary
#4E2A9A
secondary
#A0BC63
accent
#E047AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81