#4E227E#4E227E
#4E227E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.147 H 301.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #4E227E |
|---|---|
| RGB | rgb(78, 34, 126) |
| HSL | hsl(269, 58%, 31%) |
| HSV | hsv(269, 73%, 49%) |
| CMYK | cmyk(38.1%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(24.55, 39.49, -44.10) |
| CIE-LCH | lch(24.55, 59.20, 311.85°) |
| OKLab | oklab(36.71% 0.0763 -0.1257) |
| OKLCH | oklch(36.71% 0.147 301.3) |
| XYZ | xyz(7.4789, 4.2701, 20.1648) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.85
Royal Purple (survey)
#4B006E
ΔE00 5.50
Indigo (survey)
#380282
ΔE00 6.36
Rebeccapurple
#663399
ΔE00 6.48
Darkslateblue
#483D8B
ΔE00 7.98
Midnight Blue
#191970
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E227E #527E22
analogous
#22247E #4E227E #7C227E
triadic
#4E227E #7E4E22 #227E4E
tetradic
#4E227E #7E2224 #527E22 #227E7C
square
#4E227E #7E2224 #527E22 #227E7C
split-complementary
#4E227E #7E7C22 #247E22
monochromatic
#12081E #30154E #4E227E #6C2FAE #8A4CCF
Accessibility & contrast
On white
11.33
#4E227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#4E227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E227E
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E227E | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#44384D
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4e227e; /* rgb */ color: rgb(78, 34, 126); /* oklch */ color: oklch(36.7% 0.147 301.3);
Tailwind
colors: {
custom: {
50: '#8461a4',
500: '#4e227e',
950: '#000000',
},
}SCSS
$custom: #4e227e; $custom-light: #8461a4; $custom-dark: #000000;
JSON
{
"hex": "#4e227e",
"rgb": {
"r": 78,
"g": 34,
"b": 126
},
"hsl": {
"h": 268.696,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.36705,
"c": 0.14701,
"h": 301.3
},
"luminance": 0.0427
}Semantic roles & 50–950 ramp
primary
#4E227E
secondary
#80B14B
accent
#E14797
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F