#4C2F76#4C2F76
#4C2F76 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.8% C 0.118 H 299.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2F76 |
|---|---|
| RGB | rgb(76, 47, 118) |
| HSL | hsl(265, 43%, 32%) |
| HSV | hsv(265, 60%, 46%) |
| CMYK | cmyk(35.6%, 60.2%, 0%, 53.7%) |
| CIE-LAB | lab(26.38, 29.52, -36.07) |
| CIE-LCH | lch(26.38, 46.61, 309.30°) |
| OKLab | oklab(37.79% 0.058 -0.1022) |
| OKLCH | oklch(37.79% 0.118 299.6) |
| XYZ | xyz(7.2662, 4.8775, 17.6947) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.84
Rebeccapurple
#663399
ΔE00 7.09
Blueberry
#464196
ΔE00 8.09
Royal Purple (survey)
#4B006E
ΔE00 8.60
Indigo
#4B0082
ΔE00 8.76
Midnight Blue
#191970
ΔE00 9.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2F76 #59762F
analogous
#2F3676 #4C2F76 #6F2F76
triadic
#4C2F76 #764C2F #2F764C
tetradic
#4C2F76 #762F36 #59762F #2F766F
square
#4C2F76 #762F36 #59762F #2F766F
split-complementary
#4C2F76 #766F2F #36762F
monochromatic
#140C1E #301E4A #4C2F76 #6840A2 #8760C0
Accessibility & contrast
On white
10.63
#4C2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#4C2F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2F76
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2F76 | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C3E78
Deuteranopia (green-blind)
#193E74
Tritanopia (blue-blind)
#433E4D
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4c2f76; /* rgb */ color: rgb(76, 47, 118); /* oklch */ color: oklch(37.8% 0.118 299.6);
Tailwind
colors: {
custom: {
50: '#81699e',
500: '#4c2f76',
950: '#000000',
},
}SCSS
$custom: #4c2f76; $custom-light: #81699e; $custom-dark: #000000;
JSON
{
"hex": "#4c2f76",
"rgb": {
"r": 76,
"g": 47,
"b": 118
},
"hsl": {
"h": 264.507,
"s": 43.03,
"l": 32.353
},
"oklch": {
"l": 0.37786,
"c": 0.11753,
"h": 299.6
},
"luminance": 0.04878
}Semantic roles & 50–950 ramp
primary
#4C2F76
secondary
#87A75A
accent
#D3559F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E