#4C186D#4C186D
#4C186D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.140 H 308.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #4C186D |
|---|---|
| RGB | rgb(76, 24, 109) |
| HSL | hsl(277, 64%, 26%) |
| HSV | hsv(277, 78%, 43%) |
| CMYK | cmyk(30.3%, 78%, 0%, 57.3%) |
| CIE-LAB | lab(21.18, 39.54, -38.68) |
| CIE-LCH | lch(21.18, 55.31, 315.63°) |
| OKLab | oklab(33.83% 0.0872 -0.1098) |
| OKLCH | oklch(33.83% 0.14 308.5) |
| XYZ | xyz(6.0669, 3.2940, 14.7812) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.20
Indigo
#4B0082
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 6.79
Plum Purple
#4E0550
ΔE00 6.82
Deep Violet
#490648
ΔE00 8.16
Dark Indigo
#1F0954
ΔE00 8.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C186D #396D18
analogous
#21186D #4C186D #6D1863
triadic
#4C186D #6D4C18 #186D4C
tetradic
#4C186D #6D2118 #396D18 #18636D
square
#4C186D #6D2118 #396D18 #18636D
split-complementary
#4C186D #636D18 #186D21
monochromatic
#110619 #290D3B #4C186D #6F239F #922ED1
Accessibility & contrast
On white
12.66
#4C186D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#4C186D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C186D
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C186D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C186D | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#472C41
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4c186d; /* rgb */ color: rgb(76, 24, 109); /* oklch */ color: oklch(33.8% 0.140 308.5);
Tailwind
colors: {
custom: {
50: '#825b97',
500: '#4c186d',
950: '#000000',
},
}SCSS
$custom: #4c186d; $custom-light: #825b97; $custom-dark: #000000;
JSON
{
"hex": "#4c186d",
"rgb": {
"r": 76,
"g": 24,
"b": 109
},
"hsl": {
"h": 276.706,
"s": 63.91,
"l": 26.078
},
"oklch": {
"l": 0.33826,
"c": 0.14018,
"h": 308.5
},
"luminance": 0.03294
}Semantic roles & 50–950 ramp
primary
#4C186D
secondary
#65A33E
accent
#E74181
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E