#4C0F76#4C0F76
#4C0F76 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.159 H 305.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #4C0F76 |
|---|---|
| RGB | rgb(76, 15, 118) |
| HSL | hsl(276, 77%, 26%) |
| HSV | hsv(276, 87%, 46%) |
| CMYK | cmyk(35.6%, 87.3%, 0%, 53.7%) |
| CIE-LAB | lab(20.77, 45.12, -45.15) |
| CIE-LCH | lch(20.77, 63.83, 314.98°) |
| OKLab | oklab(33.78% 0.0925 -0.1287) |
| OKLCH | oklch(33.78% 0.159 305.7) |
| XYZ | xyz(6.4206, 3.1862, 17.4128) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.11
Indigo
#4B0082
ΔE00 2.65
Indigo (survey)
#380282
ΔE00 4.78
Plum Purple
#4E0550
ΔE00 8.26
Dark Indigo
#1F0954
ΔE00 8.76
Midnight Blue
#191970
ΔE00 8.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C0F76 #39760F
analogous
#180F76 #4C0F76 #760F6C
triadic
#4C0F76 #764C0F #0F764C
tetradic
#4C0F76 #76180F #39760F #0F6C76
square
#4C0F76 #76180F #39760F #0F6C76
split-complementary
#4C0F76 #6C760F #0F7618
monochromatic
#11031B #290840 #4C0F76 #6F16AC #921DE2
Accessibility & contrast
On white
12.83
#4C0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#4C0F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C0F76
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C0F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C0F76 | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#442C45
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4c0f76; /* rgb */ color: rgb(76, 15, 118); /* oklch */ color: oklch(33.8% 0.159 305.7);
Tailwind
colors: {
custom: {
50: '#83579e',
500: '#4c0f76',
950: '#000000',
},
}SCSS
$custom: #4c0f76; $custom-light: #83579e; $custom-dark: #000000;
JSON
{
"hex": "#4c0f76",
"rgb": {
"r": 76,
"g": 15,
"b": 118
},
"hsl": {
"h": 275.534,
"s": 77.444,
"l": 26.078
},
"oklch": {
"l": 0.33781,
"c": 0.15852,
"h": 305.7
},
"luminance": 0.03186
}Semantic roles & 50–950 ramp
primary
#4C0F76
secondary
#65AD33
accent
#F43482
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E