#4E226E#4E226E
#4E226E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.128 H 307.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #4E226E |
|---|---|
| RGB | rgb(78, 34, 110) |
| HSL | hsl(275, 53%, 28%) |
| HSV | hsv(275, 69%, 43%) |
| CMYK | cmyk(29.1%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(23.30, 35.35, -35.89) |
| CIE-LCH | lch(23.30, 50.37, 314.57°) |
| OKLab | oklab(35.42% 0.0785 -0.1015) |
| OKLCH | oklch(35.42% 0.128 307.7) |
| XYZ | xyz(6.5278, 3.8896, 15.1557) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.33
Indigo
#4B0082
ΔE00 6.62
Plum Purple
#4E0550
ΔE00 7.58
Indigo (survey)
#380282
ΔE00 8.25
Rebeccapurple
#663399
ΔE00 8.34
Darkish Purple
#751973
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E226E #426E22
analogous
#28226E #4E226E #6E2268
triadic
#4E226E #6E4E22 #226E4E
tetradic
#4E226E #6E2822 #426E22 #22686E
square
#4E226E #6E2822 #426E22 #22686E
split-complementary
#4E226E #686E22 #226E28
monochromatic
#110717 #2D143F #4E226E #6F309D #8F45C5
Accessibility & contrast
On white
11.81
#4E226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4E226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E226E
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E226E | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#493245
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4e226e; /* rgb */ color: rgb(78, 34, 110); /* oklch */ color: oklch(35.4% 0.128 307.7);
Tailwind
colors: {
custom: {
50: '#836098',
500: '#4e226e',
950: '#000000',
},
}SCSS
$custom: #4e226e; $custom-light: #836098; $custom-dark: #000000;
JSON
{
"hex": "#4e226e",
"rgb": {
"r": 78,
"g": 34,
"b": 110
},
"hsl": {
"h": 274.737,
"s": 52.778,
"l": 28.235
},
"oklch": {
"l": 0.35424,
"c": 0.12834,
"h": 307.7
},
"luminance": 0.0389
}Semantic roles & 50–950 ramp
primary
#4E226E
secondary
#6FA14A
accent
#DC4C88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E