#4C187F#4C187F
#4C187F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.159 H 301.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #4C187F |
|---|---|
| RGB | rgb(76, 24, 127) |
| HSL | hsl(270, 68%, 30%) |
| HSV | hsv(270, 81%, 50%) |
| CMYK | cmyk(40.2%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(22.73, 44.00, -47.70) |
| CIE-LCH | lch(22.73, 64.89, 312.69°) |
| OKLab | oklab(35.39% 0.0827 -0.1363) |
| OKLCH | oklch(35.39% 0.159 301.2) |
| XYZ | xyz(7.1369, 3.7220, 20.4170) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.85
Royal Purple (survey)
#4B006E
ΔE00 4.11
Indigo (survey)
#380282
ΔE00 4.61
Rebeccapurple
#663399
ΔE00 7.68
Indigo Blue
#3A18B1
ΔE00 8.10
Midnight Blue
#191970
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C187F #4B7F18
analogous
#18187F #4C187F #7F187F
triadic
#4C187F #7F4C18 #187F4C
tetradic
#4C187F #7F1818 #4B7F18 #187F7F
square
#4C187F #7F1818 #4B7F18 #187F7F
split-complementary
#4C187F #7F7F18 #187F18
monochromatic
#0F051A #2D0E4C #4C187F #6B22B2 #8938D9
Accessibility & contrast
On white
12.04
#4C187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4C187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C187F
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C187F | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#41344B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4c187f; /* rgb */ color: rgb(76, 24, 127); /* oklch */ color: oklch(35.4% 0.159 301.2);
Tailwind
colors: {
custom: {
50: '#845ca5',
500: '#4c187f',
950: '#000000',
},
}SCSS
$custom: #4c187f; $custom-light: #845ca5; $custom-dark: #000000;
JSON
{
"hex": "#4c187f",
"rgb": {
"r": 76,
"g": 24,
"b": 127
},
"hsl": {
"h": 270.291,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.35393,
"c": 0.15938,
"h": 301.2
},
"luminance": 0.03722
}Semantic roles & 50–950 ramp
primary
#4C187F
secondary
#79B33F
accent
#EB3D93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F