#4C1A7D#4C1A7D
#4C1A7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.155 H 301.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1A7D |
|---|---|
| RGB | rgb(76, 26, 125) |
| HSL | hsl(270, 66%, 30%) |
| HSV | hsv(270, 79%, 49%) |
| CMYK | cmyk(39.2%, 79.2%, 0%, 51%) |
| CIE-LAB | lab(22.85, 42.64, -46.24) |
| CIE-LCH | lch(22.85, 62.90, 312.68°) |
| OKLab | oklab(35.42% 0.0815 -0.132) |
| OKLCH | oklch(35.42% 0.155 301.7) |
| XYZ | xyz(7.0507, 3.7559, 19.7516) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.30
Royal Purple (survey)
#4B006E
ΔE00 4.15
Indigo (survey)
#380282
ΔE00 4.99
Rebeccapurple
#663399
ΔE00 7.60
Midnight Blue
#191970
ΔE00 8.22
Indigo Blue
#3A18B1
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1A7D #4B7D1A
analogous
#1B1A7D #4C1A7D #7D1A7D
triadic
#4C1A7D #7D4C1A #1A7D4C
tetradic
#4C1A7D #7D1B1A #4B7D1A #1A7D7D
square
#4C1A7D #7D1B1A #4B7D1A #1A7D7D
split-complementary
#4C1A7D #7D7D1A #1A7D1B
monochromatic
#0F0519 #2D0F4A #4C1A7D #6B25B0 #893BD6
Accessibility & contrast
On white
11.99
#4C1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4C1A7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1A7D
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1A7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1A7D | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#41344B
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #4c1a7d; /* rgb */ color: rgb(76, 26, 125); /* oklch */ color: oklch(35.4% 0.155 301.7);
Tailwind
colors: {
custom: {
50: '#835da3',
500: '#4c1a7d',
950: '#000000',
},
}SCSS
$custom: #4c1a7d; $custom-light: #835da3; $custom-dark: #000000;
JSON
{
"hex": "#4c1a7d",
"rgb": {
"r": 76,
"g": 26,
"b": 125
},
"hsl": {
"h": 270.303,
"s": 65.563,
"l": 29.608
},
"oklch": {
"l": 0.3542,
"c": 0.15511,
"h": 301.7
},
"luminance": 0.03756
}Semantic roles & 50–950 ramp
primary
#4C1A7D
secondary
#79B142
accent
#E93F93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F