#4C117C#4C117C
#4C117C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.163 H 303.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).
Color values
| HEX | #4C117C |
|---|---|
| RGB | rgb(76, 17, 124) |
| HSL | hsl(273, 76%, 28%) |
| HSV | hsv(273, 86%, 49%) |
| CMYK | cmyk(38.7%, 86.3%, 0%, 51.4%) |
| CIE-LAB | lab(21.55, 45.89, -47.72) |
| CIE-LCH | lch(21.55, 66.20, 313.88°) |
| OKLab | oklab(34.49% 0.0891 -0.1363) |
| OKLCH | oklch(34.49% 0.163 303.2) |
| XYZ | xyz(6.8182, 3.3926, 19.3605) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.07
Royal Purple (survey)
#4B006E
ΔE00 3.04
Indigo (survey)
#380282
ΔE00 4.24
Midnight Blue
#191970
ΔE00 8.49
Rebeccapurple
#663399
ΔE00 8.58
Indigo Blue
#3A18B1
ΔE00 8.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C117C #417C11
analogous
#16117C #4C117C #7C1177
triadic
#4C117C #7C4C11 #117C4C
tetradic
#4C117C #7C1611 #417C11 #11777C
square
#4C117C #7C1611 #417C11 #11777C
split-complementary
#4C117C #777C11 #117C16
monochromatic
#10041B #2B0A46 #4C117C #6D18B2 #8D26E1
Accessibility & contrast
On white
12.51
#4C117C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4C117C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C117C
12.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C117C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C117C | 1.00 | 12.51 | 1.68 | 12.51 |
| #FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#423048
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4c117c; /* rgb */ color: rgb(76, 17, 124); /* oklch */ color: oklch(34.5% 0.163 303.2);
Tailwind
colors: {
custom: {
50: '#8459a3',
500: '#4c117c',
950: '#000000',
},
}SCSS
$custom: #4c117c; $custom-light: #8459a3; $custom-dark: #000000;
JSON
{
"hex": "#4c117c",
"rgb": {
"r": 76,
"g": 17,
"b": 124
},
"hsl": {
"h": 273.084,
"s": 75.887,
"l": 27.647
},
"oklch": {
"l": 0.3449,
"c": 0.1628,
"h": 303.2
},
"luminance": 0.03393
}Semantic roles & 50–950 ramp
primary
#4C117C
secondary
#6EB237
accent
#F2358A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F