#4E3682#4E3682
#4E3682 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.1% C 0.123 H 294.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #4E3682 |
|---|---|
| RGB | rgb(78, 54, 130) |
| HSL | hsl(259, 41%, 36%) |
| HSV | hsv(259, 58%, 51%) |
| CMYK | cmyk(40%, 58.5%, 0%, 49%) |
| CIE-LAB | lab(29.08, 29.19, -39.28) |
| CIE-LCH | lch(29.08, 48.93, 306.62°) |
| OKLab | oklab(40.09% 0.0516 -0.1116) |
| OKLCH | oklch(40.09% 0.123 294.8) |
| XYZ | xyz(8.4893, 5.8696, 21.8004) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.32
Blueberry
#464196
ΔE00 5.50
Rebeccapurple
#663399
ΔE00 5.85
Ocean Blue
#4F42B5
ΔE00 8.89
Twilight
#4E518B
ΔE00 9.20
Sapphire (survey)
#2138AB
ΔE00 9.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E3682 #6A8236
analogous
#364482 #4E3682 #743682
triadic
#4E3682 #824E36 #36824E
tetradic
#4E3682 #823644 #6A8236 #368274
square
#4E3682 #823644 #6A8236 #368274
split-complementary
#4E3682 #827436 #448236
monochromatic
#1A122C #342457 #4E3682 #6848AD #8A6FC3
Accessibility & contrast
On white
9.66
#4E3682 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#4E3682 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E3682
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E3682 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E3682 | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4585
Deuteranopia (green-blind)
#174380
Tritanopia (blue-blind)
#414656
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4e3682; /* rgb */ color: rgb(78, 54, 130); /* oklch */ color: oklch(40.1% 0.123 294.8);
Tailwind
colors: {
custom: {
50: '#836ea7',
500: '#4e3682',
950: '#000000',
},
}SCSS
$custom: #4e3682; $custom-light: #836ea7; $custom-dark: #000000;
JSON
{
"hex": "#4e3682",
"rgb": {
"r": 78,
"g": 54,
"b": 130
},
"hsl": {
"h": 258.947,
"s": 41.304,
"l": 36.078
},
"oklch": {
"l": 0.40086,
"c": 0.12289,
"h": 294.8
},
"luminance": 0.0587
}Semantic roles & 50–950 ramp
primary
#4E3682
secondary
#96AC68
accent
#D157AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F