#4E3872#4E3872
#4E3872 is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.4% C 0.097 H 299.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #4E3872 |
|---|---|
| RGB | rgb(78, 56, 114) |
| HSL | hsl(263, 34%, 33%) |
| HSV | hsv(263, 51%, 45%) |
| CMYK | cmyk(31.6%, 50.9%, 0%, 55.3%) |
| CIE-LAB | lab(28.55, 23.33, -30.06) |
| CIE-LCH | lch(28.55, 38.05, 307.82°) |
| OKLab | oklab(39.36% 0.0477 -0.0845) |
| OKLCH | oklch(39.36% 0.097 299.4) |
| XYZ | xyz(7.5926, 5.6629, 16.6094) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.97
Blueberry
#464196
ΔE00 8.19
Rebeccapurple
#663399
ΔE00 8.55
Twilight
#4E518B
ΔE00 9.39
Dusk
#4E5481
ΔE00 10.36
Grape
#6C3461
ΔE00 10.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E3872 #5C7238
analogous
#383F72 #4E3872 #6B3872
triadic
#4E3872 #724E38 #38724E
tetradic
#4E3872 #72383F #5C7238 #38726B
square
#4E3872 #72383F #5C7238 #38726B
split-complementary
#4E3872 #726B38 #3F7238
monochromatic
#161020 #322449 #4E3872 #6A4C9B #896DB7
Accessibility & contrast
On white
9.85
#4E3872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#4E3872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E3872
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E3872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E3872 | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#254374
Deuteranopia (green-blind)
#2B4371
Tritanopia (blue-blind)
#47434F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4e3872; /* rgb */ color: rgb(78, 56, 114); /* oklch */ color: oklch(39.4% 0.097 299.4);
Tailwind
colors: {
custom: {
50: '#816f9b',
500: '#4e3872',
950: '#000000',
},
}SCSS
$custom: #4e3872; $custom-light: #816f9b; $custom-dark: #000000;
JSON
{
"hex": "#4e3872",
"rgb": {
"r": 78,
"g": 56,
"b": 114
},
"hsl": {
"h": 262.759,
"s": 34.118,
"l": 33.333
},
"oklch": {
"l": 0.39358,
"c": 0.09706,
"h": 299.4
},
"luminance": 0.05663
}Semantic roles & 50–950 ramp
primary
#4E3872
secondary
#8AA165
accent
#CA5EA1
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E