#4C1F95#4C1F95
#4C1F95 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.176 H 293.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F95 |
|---|---|
| RGB | rgb(76, 31, 149) |
| HSL | hsl(263, 66%, 35%) |
| HSV | hsv(263, 79%, 58%) |
| CMYK | cmyk(49%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(25.82, 46.73, -56.37) |
| CIE-LCH | lch(25.82, 73.22, 309.66°) |
| OKLab | oklab(38.17% 0.0703 -0.1618) |
| OKLCH | oklch(38.17% 0.176 293.5) |
| XYZ | xyz(8.8938, 4.6861, 28.8638) |
| Luminance | 0.0469 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.76
Indigo
#4B0082
ΔE00 4.93
Indigo (survey)
#380282
ΔE00 5.65
Rebeccapurple
#663399
ΔE00 6.27
Ultramarine
#2000B1
ΔE00 6.86
Royal
#0C1793
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F95 #68951F
analogous
#1F2D95 #4C1F95 #871F95
triadic
#4C1F95 #954C1F #1F954C
tetradic
#4C1F95 #951F2D #68951F #1F9587
square
#4C1F95 #951F2D #68951F #1F9587
split-complementary
#4C1F95 #95871F #2D951F
monochromatic
#180A30 #321462 #4C1F95 #662AC8 #8753DB
Accessibility & contrast
On white
10.84
#4C1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4C1F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F95
10.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F95 | 1.00 | 10.84 | 1.94 | 10.84 |
| #FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#35405A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4c1f95; /* rgb */ color: rgb(76, 31, 149); /* oklch */ color: oklch(38.2% 0.176 293.5);
Tailwind
colors: {
custom: {
50: '#8660b5',
500: '#4c1f95',
950: '#000000',
},
}SCSS
$custom: #4c1f95; $custom-light: #8660b5; $custom-dark: #000000;
JSON
{
"hex": "#4c1f95",
"rgb": {
"r": 76,
"g": 31,
"b": 149
},
"hsl": {
"h": 262.881,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.38175,
"c": 0.17636,
"h": 293.5
},
"luminance": 0.04686
}Semantic roles & 50–950 ramp
primary
#4C1F95
secondary
#95BF51
accent
#E93FA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980