#4C187C#4C187C
#4C187C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.156 H 302.3°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #4C187C |
|---|---|
| RGB | rgb(76, 24, 124) |
| HSL | hsl(271, 68%, 29%) |
| HSV | hsv(271, 81%, 49%) |
| CMYK | cmyk(38.7%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(22.46, 43.24, -46.23) |
| CIE-LCH | lch(22.46, 63.31, 313.09°) |
| OKLab | oklab(35.12% 0.0835 -0.132) |
| OKLCH | oklch(35.12% 0.156 302.3) |
| XYZ | xyz(6.9443, 3.6450, 19.4026) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.04
Royal Purple (survey)
#4B006E
ΔE00 3.77
Indigo (survey)
#380282
ΔE00 4.84
Rebeccapurple
#663399
ΔE00 7.88
Midnight Blue
#191970
ΔE00 8.28
Indigo Blue
#3A18B1
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C187C #487C18
analogous
#1A187C #4C187C #7C187A
triadic
#4C187C #7C4C18 #187C4C
tetradic
#4C187C #7C1A18 #487C18 #187A7C
square
#4C187C #7C1A18 #487C18 #187A7C
split-complementary
#4C187C #7A7C18 #187C1A
monochromatic
#10051A #2D0E49 #4C187C #6B22AF #8A36D8
Accessibility & contrast
On white
12.15
#4C187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4C187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C187C
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C187C | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#42334A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4c187c; /* rgb */ color: rgb(76, 24, 124); /* oklch */ color: oklch(35.1% 0.156 302.3);
Tailwind
colors: {
custom: {
50: '#835ca3',
500: '#4c187c',
950: '#000000',
},
}SCSS
$custom: #4c187c; $custom-light: #835ca3; $custom-dark: #000000;
JSON
{
"hex": "#4c187c",
"rgb": {
"r": 76,
"g": 24,
"b": 124
},
"hsl": {
"h": 271.2,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.35122,
"c": 0.15618,
"h": 302.3
},
"luminance": 0.03645
}Semantic roles & 50–950 ramp
primary
#4C187C
secondary
#76B13F
accent
#EA3D90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F