#4C2A8F#4C2A8F
#4C2A8F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.157 H 293.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2A8F |
|---|---|
| RGB | rgb(76, 42, 143) |
| HSL | hsl(260, 55%, 36%) |
| HSV | hsv(260, 71%, 56%) |
| CMYK | cmyk(46.9%, 70.6%, 0%, 43.9%) |
| CIE-LAB | lab(27.23, 39.57, -50.37) |
| CIE-LCH | lch(27.23, 64.05, 308.15°) |
| OKLab | oklab(39% 0.0617 -0.1442) |
| OKLCH | oklch(39% 0.157 293.2) |
| XYZ | xyz(8.7650, 5.1753, 26.5184) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.19
Darkslateblue
#483D8B
ΔE00 5.82
Indigo Blue
#3A18B1
ΔE00 6.44
Indigo
#4B0082
ΔE00 6.63
Blueberry
#464196
ΔE00 6.96
Indigo (survey)
#380282
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2A8F #6D8F2A
analogous
#2A3B8F #4C2A8F #7F2A8F
triadic
#4C2A8F #8F4C2A #2A8F4C
tetradic
#4C2A8F #8F2A3B #6D8F2A #2A8F7F
square
#4C2A8F #8F2A3B #6D8F2A #2A8F7F
split-complementary
#4C2A8F #8F7F2A #3B8F2A
monochromatic
#1A0E30 #331C60 #4C2A8F #6538BE #8862D1
Accessibility & contrast
On white
10.32
#4C2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#4C2A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2A8F
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2A8F | 1.00 | 10.32 | 2.04 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#384359
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4c2a8f; /* rgb */ color: rgb(76, 42, 143); /* oklch */ color: oklch(39.0% 0.157 293.2);
Tailwind
colors: {
custom: {
50: '#8466b1',
500: '#4c2a8f',
950: '#000000',
},
}SCSS
$custom: #4c2a8f; $custom-light: #8466b1; $custom-dark: #000000;
JSON
{
"hex": "#4c2a8f",
"rgb": {
"r": 76,
"g": 42,
"b": 143
},
"hsl": {
"h": 260.198,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.39004,
"c": 0.15686,
"h": 293.2
},
"luminance": 0.05176
}Semantic roles & 50–950 ramp
primary
#4C2A8F
secondary
#99B75E
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80