#4E338F#4E338F
#4E338F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.145 H 292.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #4E338F |
|---|---|
| RGB | rgb(78, 51, 143) |
| HSL | hsl(258, 47%, 38%) |
| HSV | hsv(258, 64%, 56%) |
| CMYK | cmyk(45.5%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(29.34, 34.84, -46.93) |
| CIE-LCH | lch(29.34, 58.45, 306.59°) |
| OKLab | oklab(40.57% 0.0548 -0.1341) |
| OKLCH | oklch(40.57% 0.145 292.2) |
| XYZ | xyz(9.2823, 5.9702, 26.6446) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.71
Rebeccapurple
#663399
ΔE00 4.71
Blueberry
#464196
ΔE00 4.98
Ocean Blue
#4F42B5
ΔE00 7.05
Indigo Blue
#3A18B1
ΔE00 7.97
Sapphire (survey)
#2138AB
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E338F #748F33
analogous
#33468F #4E338F #7C338F
triadic
#4E338F #8F4E33 #338F4E
tetradic
#4E338F #8F3346 #748F33 #338F7C
square
#4E338F #8F3346 #748F33 #338F7C
split-complementary
#4E338F #8F7C33 #468F33
monochromatic
#1D1335 #352362 #4E338F #6743BC #8B70CC
Accessibility & contrast
On white
9.57
#4E338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#4E338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E338F
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E338F | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#3B485C
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4e338f; /* rgb */ color: rgb(78, 51, 143); /* oklch */ color: oklch(40.6% 0.145 292.2);
Tailwind
colors: {
custom: {
50: '#856cb0',
500: '#4e338f',
950: '#000000',
},
}SCSS
$custom: #4e338f; $custom-light: #856cb0; $custom-dark: #000000;
JSON
{
"hex": "#4e338f",
"rgb": {
"r": 78,
"g": 51,
"b": 143
},
"hsl": {
"h": 257.609,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.40574,
"c": 0.14482,
"h": 292.2
},
"luminance": 0.05971
}Semantic roles & 50–950 ramp
primary
#4E338F
secondary
#9EB46A
accent
#D751B0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0711
muted
#7C7A80