#4E4271#4E4271
#4E4271 is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.3% C 0.078 H 294.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #4E4271 |
|---|---|
| RGB | rgb(78, 66, 113) |
| HSL | hsl(255, 26%, 35%) |
| HSV | hsv(255, 42%, 44%) |
| CMYK | cmyk(31%, 41.6%, 0%, 55.7%) |
| CIE-LAB | lab(31.13, 16.60, -25.34) |
| CIE-LCH | lch(31.13, 30.29, 303.23°) |
| OKLab | oklab(41.29% 0.0323 -0.0708) |
| OKLCH | oklch(41.29% 0.078 294.5) |
| XYZ | xyz(8.0700, 6.7083, 16.4892) |
| Luminance | 0.0671 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 7.14
Twilight
#4E518B
ΔE00 7.15
Dusk
#4E5481
ΔE00 7.24
Blueberry
#464196
ΔE00 8.80
Rebeccapurple
#663399
ΔE00 11.02
Grape
#6C3461
ΔE00 11.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E4271 #657142
analogous
#424E71 #4E4271 #654271
triadic
#4E4271 #714E42 #42714E
tetradic
#4E4271 #71424E #657142 #427165
square
#4E4271 #71424E #657142 #427165
split-complementary
#4E4271 #716542 #4E7142
monochromatic
#191524 #332B4A #4E4271 #695998 #897BB2
Accessibility & contrast
On white
8.97
#4E4271 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#4E4271 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E4271
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E4271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E4271 | 1.00 | 8.97 | 2.34 | 8.97 |
| #FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#364970
Tritanopia (blue-blind)
#464A54
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #4e4271; /* rgb */ color: rgb(78, 66, 113); /* oklch */ color: oklch(41.3% 0.078 294.5);
Tailwind
colors: {
custom: {
50: '#81769a',
500: '#4e4271',
950: '#000000',
},
}SCSS
$custom: #4e4271; $custom-light: #81769a; $custom-dark: #000000;
JSON
{
"hex": "#4e4271",
"rgb": {
"r": 78,
"g": 66,
"b": 113
},
"hsl": {
"h": 255.319,
"s": 26.257,
"l": 35.098
},
"oklch": {
"l": 0.41289,
"c": 0.07782,
"h": 294.5
},
"luminance": 0.06708
}Semantic roles & 50–950 ramp
primary
#4E4271
secondary
#929D71
accent
#C365AB
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080E
muted
#7C7B7E