#4C217F#4C217F
#4C217F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.149 H 299.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #4C217F |
|---|---|
| RGB | rgb(76, 33, 127) |
| HSL | hsl(267, 59%, 31%) |
| HSV | hsv(267, 74%, 50%) |
| CMYK | cmyk(40.2%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(24.18, 39.86, -45.33) |
| CIE-LCH | lch(24.18, 60.36, 311.33°) |
| OKLab | oklab(36.41% 0.0741 -0.1294) |
| OKLCH | oklch(36.41% 0.149 299.8) |
| XYZ | xyz(7.3542, 4.1564, 20.4894) |
| Luminance | 0.0416 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.56
Royal Purple (survey)
#4B006E
ΔE00 5.46
Indigo (survey)
#380282
ΔE00 5.89
Rebeccapurple
#663399
ΔE00 6.71
Darkslateblue
#483D8B
ΔE00 8.00
Midnight Blue
#191970
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C217F #547F21
analogous
#21257F #4C217F #7B217F
triadic
#4C217F #7F4C21 #217F4C
tetradic
#4C217F #7F2125 #547F21 #217F7B
square
#4C217F #7F2125 #547F21 #217F7B
split-complementary
#4C217F #7F7B21 #257F21
monochromatic
#12081E #2F144E #4C217F #692EB0 #884AD0
Accessibility & contrast
On white
11.47
#4C217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#4C217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C217F
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C217F | 1.00 | 11.47 | 1.83 | 11.47 |
| #FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#40384E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4c217f; /* rgb */ color: rgb(76, 33, 127); /* oklch */ color: oklch(36.4% 0.149 299.8);
Tailwind
colors: {
custom: {
50: '#8360a5',
500: '#4c217f',
950: '#000000',
},
}SCSS
$custom: #4c217f; $custom-light: #8360a5; $custom-dark: #000000;
JSON
{
"hex": "#4c217f",
"rgb": {
"r": 76,
"g": 33,
"b": 127
},
"hsl": {
"h": 267.447,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.36414,
"c": 0.14909,
"h": 299.8
},
"luminance": 0.04157
}Semantic roles & 50–950 ramp
primary
#4C217F
secondary
#82B24A
accent
#E2469B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F