#4E226F#4E226F
#4E226F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.130 H 307.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #4E226F |
|---|---|
| RGB | rgb(78, 34, 111) |
| HSL | hsl(274, 53%, 28%) |
| HSV | hsv(274, 69%, 44%) |
| CMYK | cmyk(29.7%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(23.38, 35.60, -36.41) |
| CIE-LCH | lch(23.38, 50.93, 314.36°) |
| OKLab | oklab(35.5% 0.0784 -0.1031) |
| OKLCH | oklch(35.5% 0.13 307.3) |
| XYZ | xyz(6.5826, 3.9115, 15.4441) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.28
Indigo
#4B0082
ΔE00 6.46
Plum Purple
#4E0550
ΔE00 7.74
Indigo (survey)
#380282
ΔE00 8.10
Rebeccapurple
#663399
ΔE00 8.19
Darkish Purple
#751973
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E226F #436F22
analogous
#28226F #4E226F #6F2269
triadic
#4E226F #6F4E22 #226F4E
tetradic
#4E226F #6F2822 #436F22 #22696F
square
#4E226F #6F2822 #436F22 #22696F
split-complementary
#4E226F #696F22 #226F28
monochromatic
#100717 #2D1440 #4E226F #6F309E #8F45C6
Accessibility & contrast
On white
11.78
#4E226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4E226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E226F
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E226F | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#493245
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4e226f; /* rgb */ color: rgb(78, 34, 111); /* oklch */ color: oklch(35.5% 0.130 307.3);
Tailwind
colors: {
custom: {
50: '#836099',
500: '#4e226f',
950: '#000000',
},
}SCSS
$custom: #4e226f; $custom-light: #836099; $custom-dark: #000000;
JSON
{
"hex": "#4e226f",
"rgb": {
"r": 78,
"g": 34,
"b": 111
},
"hsl": {
"h": 274.286,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.35501,
"c": 0.12951,
"h": 307.3
},
"luminance": 0.03911
}Semantic roles & 50–950 ramp
primary
#4E226F
secondary
#70A24A
accent
#DD4B8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E