#4C1779#4C1779
#4C1779 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.154 H 303.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1779 |
|---|---|
| RGB | rgb(76, 23, 121) |
| HSL | hsl(272, 68%, 28%) |
| HSV | hsv(272, 81%, 47%) |
| CMYK | cmyk(37.2%, 81%, 0%, 52.5%) |
| CIE-LAB | lab(22.05, 42.91, -44.99) |
| CIE-LCH | lch(22.05, 62.17, 313.65°) |
| OKLab | oklab(34.75% 0.0853 -0.1283) |
| OKLCH | oklch(34.75% 0.154 303.6) |
| XYZ | xyz(6.7373, 3.5298, 18.4118) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.16
Royal Purple (survey)
#4B006E
ΔE00 3.34
Indigo (survey)
#380282
ΔE00 5.03
Rebeccapurple
#663399
ΔE00 8.21
Midnight Blue
#191970
ΔE00 8.40
Plum Purple
#4E0550
ΔE00 8.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1779 #447917
analogous
#1B1779 #4C1779 #791775
triadic
#4C1779 #794C17 #17794C
tetradic
#4C1779 #791B17 #447917 #177579
square
#4C1779 #791B17 #447917 #177579
split-complementary
#4C1779 #757917 #17791B
monochromatic
#10051A #2C0D46 #4C1779 #6C21AC #8C32D8
Accessibility & contrast
On white
12.31
#4C1779 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4C1779 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1779
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1779 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1779 | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#433148
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c1779; /* rgb */ color: rgb(76, 23, 121); /* oklch */ color: oklch(34.8% 0.154 303.6);
Tailwind
colors: {
custom: {
50: '#835ba0',
500: '#4c1779',
950: '#000000',
},
}SCSS
$custom: #4c1779; $custom-light: #835ba0; $custom-dark: #000000;
JSON
{
"hex": "#4c1779",
"rgb": {
"r": 76,
"g": 23,
"b": 121
},
"hsl": {
"h": 272.449,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.34753,
"c": 0.15405,
"h": 303.6
},
"luminance": 0.0353
}Semantic roles & 50–950 ramp
primary
#4C1779
secondary
#71AE3E
accent
#EB3D8D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F