#4A218F#4A218F
#4A218F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.167 H 293.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).
Color values
| HEX | #4A218F |
|---|---|
| RGB | rgb(74, 33, 143) |
| HSL | hsl(262, 63%, 35%) |
| HSV | hsv(262, 77%, 56%) |
| CMYK | cmyk(48.3%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(25.34, 43.85, -53.46) |
| CIE-LCH | lch(25.34, 69.15, 309.36°) |
| OKLab | oklab(37.61% 0.0672 -0.1533) |
| OKLCH | oklch(37.61% 0.167 293.7) |
| XYZ | xyz(8.3245, 4.5265, 26.4164) |
| Luminance | 0.0453 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.84
Indigo (survey)
#380282
ΔE00 5.51
Indigo Blue
#3A18B1
ΔE00 5.53
Rebeccapurple
#663399
ΔE00 6.32
Royal
#0C1793
ΔE00 6.95
Royal Purple (survey)
#4B006E
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A218F #668F21
analogous
#212F8F #4A218F #81218F
triadic
#4A218F #8F4A21 #218F4A
tetradic
#4A218F #8F212F #668F21 #218F81
square
#4A218F #8F212F #668F21 #218F81
split-complementary
#4A218F #8F8121 #2F8F21
monochromatic
#170A2C #30165D #4A218F #642CC1 #8453D7
Accessibility & contrast
On white
11.02
#4A218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#4A218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A218F
11.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A218F | 1.00 | 11.02 | 1.91 | 11.02 |
| #FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#353F57
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4a218f; /* rgb */ color: rgb(74, 33, 143); /* oklch */ color: oklch(37.6% 0.167 293.7);
Tailwind
colors: {
custom: {
50: '#8461b1',
500: '#4a218f',
950: '#000000',
},
}SCSS
$custom: #4a218f; $custom-light: #8461b1; $custom-dark: #000000;
JSON
{
"hex": "#4a218f",
"rgb": {
"r": 74,
"g": 33,
"b": 143
},
"hsl": {
"h": 262.364,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.37612,
"c": 0.1674,
"h": 293.7
},
"luminance": 0.04527
}Semantic roles & 50–950 ramp
primary
#4A218F
secondary
#93BB51
accent
#E642A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980