#4C217C#4C217C
#4C217C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 300.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).
Color values
| HEX | #4C217C |
|---|---|
| RGB | rgb(76, 33, 124) |
| HSL | hsl(268, 58%, 31%) |
| HSV | hsv(268, 73%, 49%) |
| CMYK | cmyk(38.7%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(23.93, 39.06, -43.84) |
| CIE-LCH | lch(23.93, 58.72, 311.70°) |
| OKLab | oklab(36.16% 0.0747 -0.125) |
| OKLCH | oklch(36.16% 0.146 300.9) |
| XYZ | xyz(7.1615, 4.0794, 19.4750) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.73
Royal Purple (survey)
#4B006E
ΔE00 5.25
Indigo (survey)
#380282
ΔE00 6.11
Rebeccapurple
#663399
ΔE00 6.94
Darkslateblue
#483D8B
ΔE00 8.15
Midnight Blue
#191970
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C217C #517C21
analogous
#21237C #4C217C #79217C
triadic
#4C217C #7C4C21 #217C4C
tetradic
#4C217C #7C2123 #517C21 #217C79
square
#4C217C #7C2123 #517C21 #217C79
split-complementary
#4C217C #7C7921 #237C21
monochromatic
#11071B #2E144C #4C217C #6A2EAC #8849CF
Accessibility & contrast
On white
11.57
#4C217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#4C217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C217C
11.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C217C | 1.00 | 11.57 | 1.82 | 11.57 |
| #FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#41374C
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4c217c; /* rgb */ color: rgb(76, 33, 124); /* oklch */ color: oklch(36.2% 0.146 300.9);
Tailwind
colors: {
custom: {
50: '#8360a3',
500: '#4c217c',
950: '#000000',
},
}SCSS
$custom: #4c217c; $custom-light: #8360a3; $custom-dark: #000000;
JSON
{
"hex": "#4c217c",
"rgb": {
"r": 76,
"g": 33,
"b": 124
},
"hsl": {
"h": 268.352,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.36159,
"c": 0.1456,
"h": 300.9
},
"luminance": 0.04079
}Semantic roles & 50–950 ramp
primary
#4C217C
secondary
#7FAF4A
accent
#E14798
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F