#4E318B#4E318B
#4E318B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.142 H 293.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #4E318B |
|---|---|
| RGB | rgb(78, 49, 139) |
| HSL | hsl(259, 48%, 37%) |
| HSV | hsv(259, 65%, 55%) |
| CMYK | cmyk(43.9%, 64.7%, 0%, 45.5%) |
| CIE-LAB | lab(28.59, 34.84, -45.67) |
| CIE-LCH | lch(28.59, 57.44, 307.34°) |
| OKLab | oklab(39.94% 0.0574 -0.1303) |
| OKLCH | oklch(39.94% 0.142 293.8) |
| XYZ | xyz(8.8991, 5.6802, 25.0486) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.14
Rebeccapurple
#663399
ΔE00 4.78
Blueberry
#464196
ΔE00 5.66
Ocean Blue
#4F42B5
ΔE00 7.88
Indigo Blue
#3A18B1
ΔE00 8.17
Indigo
#4B0082
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E318B #6E8B31
analogous
#31418B #4E318B #7B318B
triadic
#4E318B #8B4E31 #318B4E
tetradic
#4E318B #8B3141 #6E8B31 #318B7B
square
#4E318B #8B3141 #6E8B31 #318B7B
split-complementary
#4E318B #8B7B31 #418B31
monochromatic
#1B1131 #35215E #4E318B #6741B8 #8A6BCB
Accessibility & contrast
On white
9.83
#4E318B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#4E318B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E318B
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E318B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E318B | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#3D4659
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4e318b; /* rgb */ color: rgb(78, 49, 139); /* oklch */ color: oklch(39.9% 0.142 293.8);
Tailwind
colors: {
custom: {
50: '#856bae',
500: '#4e318b',
950: '#000000',
},
}SCSS
$custom: #4e318b; $custom-light: #856bae; $custom-dark: #000000;
JSON
{
"hex": "#4e318b",
"rgb": {
"r": 78,
"g": 49,
"b": 139
},
"hsl": {
"h": 259.333,
"s": 47.872,
"l": 36.863
},
"oklch": {
"l": 0.39936,
"c": 0.14244,
"h": 293.8
},
"luminance": 0.0568
}Semantic roles & 50–950 ramp
primary
#4E318B
secondary
#9AB265
accent
#D750AC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F