#4A218C#4A218C
#4A218C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.164 H 294.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #4A218C |
|---|---|
| RGB | rgb(74, 33, 140) |
| HSL | hsl(263, 62%, 34%) |
| HSV | hsv(263, 76%, 55%) |
| CMYK | cmyk(47.1%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(25.07, 43.03, -52.05) |
| CIE-LCH | lch(25.07, 67.53, 309.58°) |
| OKLab | oklab(37.34% 0.068 -0.1492) |
| OKLCH | oklch(37.34% 0.164 294.5) |
| XYZ | xyz(8.1002, 4.4368, 25.2355) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.67
Indigo (survey)
#380282
ΔE00 5.42
Indigo Blue
#3A18B1
ΔE00 5.99
Rebeccapurple
#663399
ΔE00 6.37
Royal Purple (survey)
#4B006E
ΔE00 6.88
Royal
#0C1793
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A218C #638C21
analogous
#212D8C #4A218C #80218C
triadic
#4A218C #8C4A21 #218C4A
tetradic
#4A218C #8C212D #638C21 #218C80
square
#4A218C #8C212D #638C21 #218C80
split-complementary
#4A218C #8C8021 #2D8C21
monochromatic
#160A29 #30155A #4A218C #642DBE #8451D6
Accessibility & contrast
On white
11.13
#4A218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#4A218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A218C
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A218C | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#373E55
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #4a218c; /* rgb */ color: rgb(74, 33, 140); /* oklch */ color: oklch(37.3% 0.164 294.5);
Tailwind
colors: {
custom: {
50: '#8361af',
500: '#4a218c',
950: '#000000',
},
}SCSS
$custom: #4a218c; $custom-light: #8361af; $custom-dark: #000000;
JSON
{
"hex": "#4a218c",
"rgb": {
"r": 74,
"g": 33,
"b": 140
},
"hsl": {
"h": 262.991,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.37335,
"c": 0.16394,
"h": 294.5
},
"luminance": 0.04437
}Semantic roles & 50–950 ramp
primary
#4A218C
secondary
#91B94F
accent
#E543A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0B0510
muted
#7C797F