#4E229F#4E229F
#4E229F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.185 H 291.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4E229F |
|---|---|
| RGB | rgb(78, 34, 159) |
| HSL | hsl(261, 65%, 38%) |
| HSV | hsv(261, 79%, 62%) |
| CMYK | cmyk(50.9%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(27.48, 48.39, -59.76) |
| CIE-LCH | lch(27.48, 76.90, 309.00°) |
| OKLab | oklab(39.68% 0.068 -0.1717) |
| OKLCH | oklch(39.68% 0.185 291.6) |
| XYZ | xyz(9.9701, 5.2666, 33.2854) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.90
Violet Blue
#510AC9
ΔE00 5.73
Rebeccapurple
#663399
ΔE00 5.91
Indigo
#4B0082
ΔE00 6.32
Ultramarine
#2000B1
ΔE00 6.63
Purple Blue
#5D21D0
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E229F #739F22
analogous
#22349F #4E229F #8C229F
triadic
#4E229F #9F4E22 #229F4E
tetradic
#4E229F #9F2234 #739F22 #229F8C
square
#4E229F #9F2234 #739F22 #229F8C
split-complementary
#4E229F #9F8C22 #349F22
monochromatic
#1D0C3A #35176D #4E229F #672DD1 #8B5FDD
Accessibility & contrast
On white
10.23
#4E229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#4E229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E229F
10.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E229F | 1.00 | 10.23 | 2.05 | 10.23 |
| #FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#324560
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4e229f; /* rgb */ color: rgb(78, 34, 159); /* oklch */ color: oklch(39.7% 0.185 291.6);
Tailwind
colors: {
custom: {
50: '#8863bc',
500: '#4e229f',
950: '#000000',
},
}SCSS
$custom: #4e229f; $custom-light: #8863bc; $custom-dark: #000000;
JSON
{
"hex": "#4e229f",
"rgb": {
"r": 78,
"g": 34,
"b": 159
},
"hsl": {
"h": 261.12,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.39678,
"c": 0.18465,
"h": 291.6
},
"luminance": 0.05267
}Semantic roles & 50–950 ramp
primary
#4E229F
secondary
#9EC15B
accent
#E840AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81