#4C137C#4C137C
#4C137C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.161 H 303.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #4C137C |
|---|---|
| RGB | rgb(76, 19, 124) |
| HSL | hsl(273, 73%, 28%) |
| HSV | hsv(273, 85%, 49%) |
| CMYK | cmyk(38.7%, 84.7%, 0%, 51.4%) |
| CIE-LAB | lab(21.79, 45.19, -47.33) |
| CIE-LCH | lch(21.79, 65.44, 313.68°) |
| OKLab | oklab(34.65% 0.0876 -0.1351) |
| OKLCH | oklch(34.65% 0.161 303) |
| XYZ | xyz(6.8506, 3.4575, 19.3713) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.31
Royal Purple (survey)
#4B006E
ΔE00 3.21
Indigo (survey)
#380282
ΔE00 4.38
Rebeccapurple
#663399
ΔE00 8.39
Midnight Blue
#191970
ΔE00 8.42
Indigo Blue
#3A18B1
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C137C #437C13
analogous
#17137C #4C137C #7C1378
triadic
#4C137C #7C4C13 #137C4C
tetradic
#4C137C #7C1713 #437C13 #13787C
square
#4C137C #7C1713 #437C13 #13787C
split-complementary
#4C137C #787C13 #137C17
monochromatic
#10041B #2B0B47 #4C137C #6D1BB1 #8C2BDF
Accessibility & contrast
On white
12.42
#4C137C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#4C137C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C137C
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C137C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C137C | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4c137c; /* rgb */ color: rgb(76, 19, 124); /* oklch */ color: oklch(34.7% 0.161 303.0);
Tailwind
colors: {
custom: {
50: '#8459a3',
500: '#4c137c',
950: '#000000',
},
}SCSS
$custom: #4c137c; $custom-light: #8459a3; $custom-dark: #000000;
JSON
{
"hex": "#4c137c",
"rgb": {
"r": 76,
"g": 19,
"b": 124
},
"hsl": {
"h": 272.571,
"s": 73.427,
"l": 28.039
},
"oklch": {
"l": 0.34654,
"c": 0.16106,
"h": 303
},
"luminance": 0.03457
}Semantic roles & 50–950 ramp
primary
#4C137C
secondary
#70B239
accent
#F0388C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F