#4C218C#4C218C
#4C218C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.164 H 295.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4C218C |
|---|---|
| RGB | rgb(76, 33, 140) |
| HSL | hsl(264, 62%, 34%) |
| HSV | hsv(264, 76%, 55%) |
| CMYK | cmyk(45.7%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(25.31, 43.37, -51.63) |
| CIE-LCH | lch(25.31, 67.43, 310.03°) |
| OKLab | oklab(37.57% 0.0711 -0.1479) |
| OKLCH | oklch(37.57% 0.164 295.7) |
| XYZ | xyz(8.2567, 4.5175, 25.2428) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 5.58
Rebeccapurple
#663399
ΔE00 6.10
Indigo Blue
#3A18B1
ΔE00 6.16
Royal Purple (survey)
#4B006E
ΔE00 6.78
Royal
#0C1793
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C218C #618C21
analogous
#212C8C #4C218C #82218C
triadic
#4C218C #8C4C21 #218C4C
tetradic
#4C218C #8C212C #618C21 #218C82
square
#4C218C #8C212C #618C21 #218C82
split-complementary
#4C218C #8C8221 #2C8C21
monochromatic
#160A29 #31155A #4C218C #672DBE #8751D6
Accessibility & contrast
On white
11.03
#4C218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#4C218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C218C
11.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C218C | 1.00 | 11.03 | 1.90 | 11.03 |
| #FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3A3D55
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4c218c; /* rgb */ color: rgb(76, 33, 140); /* oklch */ color: oklch(37.6% 0.164 295.7);
Tailwind
colors: {
custom: {
50: '#8561af',
500: '#4c218c',
950: '#000000',
},
}SCSS
$custom: #4c218c; $custom-light: #8561af; $custom-dark: #000000;
JSON
{
"hex": "#4c218c",
"rgb": {
"r": 76,
"g": 33,
"b": 140
},
"hsl": {
"h": 264.112,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.37565,
"c": 0.16409,
"h": 295.7
},
"luminance": 0.04518
}Semantic roles & 50–950 ramp
primary
#4C218C
secondary
#8FB94F
accent
#E543A4
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F