#4E3782#4E3782
#4E3782 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.3% C 0.121 H 294.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #4E3782 |
|---|---|
| RGB | rgb(78, 55, 130) |
| HSL | hsl(258, 41%, 36%) |
| HSV | hsv(258, 58%, 51%) |
| CMYK | cmyk(40%, 57.7%, 0%, 49%) |
| CIE-LAB | lab(29.32, 28.57, -38.89) |
| CIE-LCH | lch(29.32, 48.26, 306.30°) |
| OKLab | oklab(40.26% 0.0502 -0.1104) |
| OKLCH | oklch(40.26% 0.121 294.5) |
| XYZ | xyz(8.5363, 5.9636, 21.8161) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.13
Blueberry
#464196
ΔE00 5.34
Rebeccapurple
#663399
ΔE00 5.98
Ocean Blue
#4F42B5
ΔE00 8.84
Twilight
#4E518B
ΔE00 8.90
Sapphire (survey)
#2138AB
ΔE00 9.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E3782 #6B8237
analogous
#374682 #4E3782 #743782
triadic
#4E3782 #824E37 #37824E
tetradic
#4E3782 #823746 #6B8237 #378274
square
#4E3782 #823746 #6B8237 #378274
split-complementary
#4E3782 #827437 #468237
monochromatic
#1A132C #342557 #4E3782 #6849AD #8A71C3
Accessibility & contrast
On white
9.58
#4E3782 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#4E3782 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E3782
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E3782 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E3782 | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124685
Deuteranopia (green-blind)
#194480
Tritanopia (blue-blind)
#414757
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4e3782; /* rgb */ color: rgb(78, 55, 130); /* oklch */ color: oklch(40.3% 0.121 294.5);
Tailwind
colors: {
custom: {
50: '#836ea7',
500: '#4e3782',
950: '#000000',
},
}SCSS
$custom: #4e3782; $custom-light: #836ea7; $custom-dark: #000000;
JSON
{
"hex": "#4e3782",
"rgb": {
"r": 78,
"g": 55,
"b": 130
},
"hsl": {
"h": 258.4,
"s": 40.541,
"l": 36.275
},
"oklch": {
"l": 0.40263,
"c": 0.12132,
"h": 294.5
},
"luminance": 0.05964
}Semantic roles & 50–950 ramp
primary
#4E3782
secondary
#97AB69
accent
#D057AB
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F