#4D187C#4D187C
#4D187C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.156 H 303.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #4D187C |
|---|---|
| RGB | rgb(77, 24, 124) |
| HSL | hsl(272, 68%, 29%) |
| HSV | hsv(272, 81%, 49%) |
| CMYK | cmyk(37.9%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(22.61, 43.42, -45.99) |
| CIE-LCH | lch(22.61, 63.25, 313.35°) |
| OKLab | oklab(35.25% 0.0851 -0.1312) |
| OKLCH | oklch(35.25% 0.156 303) |
| XYZ | xyz(7.0244, 3.6863, 19.4063) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.08
Royal Purple (survey)
#4B006E
ΔE00 3.74
Indigo (survey)
#380282
ΔE00 4.99
Rebeccapurple
#663399
ΔE00 7.79
Midnight Blue
#191970
ΔE00 8.47
Indigo Blue
#3A18B1
ΔE00 8.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D187C #477C18
analogous
#1B187C #4D187C #7C1879
triadic
#4D187C #7C4D18 #187C4D
tetradic
#4D187C #7C1B18 #477C18 #18797C
square
#4D187C #7C1B18 #477C18 #18797C
split-complementary
#4D187C #797C18 #187C1B
monochromatic
#10051A #2D0E49 #4D187C #6D22AF #8C36D8
Accessibility & contrast
On white
12.09
#4D187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4D187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D187C
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D187C | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4d187c; /* rgb */ color: rgb(77, 24, 124); /* oklch */ color: oklch(35.3% 0.156 303.0);
Tailwind
colors: {
custom: {
50: '#845ca3',
500: '#4d187c',
950: '#000000',
},
}SCSS
$custom: #4d187c; $custom-light: #845ca3; $custom-dark: #000000;
JSON
{
"hex": "#4d187c",
"rgb": {
"r": 77,
"g": 24,
"b": 124
},
"hsl": {
"h": 271.8,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.35254,
"c": 0.15638,
"h": 303
},
"luminance": 0.03686
}Semantic roles & 50–950 ramp
primary
#4D187C
secondary
#74B13F
accent
#EA3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F