#4C217A#4C217A
#4C217A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 301.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #4C217A |
|---|---|
| RGB | rgb(76, 33, 122) |
| HSL | hsl(269, 57%, 30%) |
| HSV | hsv(269, 73%, 48%) |
| CMYK | cmyk(37.7%, 73%, 0%, 52.2%) |
| CIE-LAB | lab(23.77, 38.53, -42.83) |
| CIE-LCH | lch(23.77, 57.61, 311.97°) |
| OKLab | oklab(35.99% 0.0751 -0.122) |
| OKLCH | oklch(35.99% 0.143 301.6) |
| XYZ | xyz(7.0364, 4.0293, 18.8156) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.87
Royal Purple (survey)
#4B006E
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 6.29
Rebeccapurple
#663399
ΔE00 7.12
Darkslateblue
#483D8B
ΔE00 8.27
Midnight Blue
#191970
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C217A #4F7A21
analogous
#21227A #4C217A #78217A
triadic
#4C217A #7A4C21 #217A4C
tetradic
#4C217A #7A2122 #4F7A21 #217A78
square
#4C217A #7A2122 #4F7A21 #217A78
split-complementary
#4C217A #7A7821 #227A21
monochromatic
#10071A #2E144A #4C217A #6A2EAA #8848CD
Accessibility & contrast
On white
11.63
#4C217A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4C217A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C217A
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C217A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C217A | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#42364B
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4c217a; /* rgb */ color: rgb(76, 33, 122); /* oklch */ color: oklch(36.0% 0.143 301.6);
Tailwind
colors: {
custom: {
50: '#8260a1',
500: '#4c217a',
950: '#000000',
},
}SCSS
$custom: #4c217a; $custom-light: #8260a1; $custom-dark: #000000;
JSON
{
"hex": "#4c217a",
"rgb": {
"r": 76,
"g": 33,
"b": 122
},
"hsl": {
"h": 268.989,
"s": 57.419,
"l": 30.392
},
"oklch": {
"l": 0.35991,
"c": 0.14327,
"h": 301.6
},
"luminance": 0.04029
}Semantic roles & 50–950 ramp
primary
#4C217A
secondary
#7DAD4A
accent
#E14796
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F