#4C186E#4C186E
#4C186E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.141 H 308.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #4C186E |
|---|---|
| RGB | rgb(76, 24, 110) |
| HSL | hsl(276, 64%, 26%) |
| HSV | hsv(276, 78%, 43%) |
| CMYK | cmyk(30.9%, 78.2%, 0%, 56.9%) |
| CIE-LAB | lab(21.27, 39.79, -39.19) |
| CIE-LCH | lch(21.27, 55.85, 315.43°) |
| OKLab | oklab(33.91% 0.087 -0.1113) |
| OKLCH | oklch(33.91% 0.141 308) |
| XYZ | xyz(6.1210, 3.3156, 15.0664) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.16
Indigo
#4B0082
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 6.62
Plum Purple
#4E0550
ΔE00 7.00
Deep Violet
#490648
ΔE00 8.35
Dark Indigo
#1F0954
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C186E #3A6E18
analogous
#21186E #4C186E #6E1865
triadic
#4C186E #6E4C18 #186E4C
tetradic
#4C186E #6E2118 #3A6E18 #18656E
square
#4C186E #6E2118 #3A6E18 #18656E
split-complementary
#4C186E #656E18 #186E21
monochromatic
#110519 #290D3C #4C186E #6F23A0 #912FD2
Accessibility & contrast
On white
12.63
#4C186E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#4C186E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C186E
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C186E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C186E | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#472D42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4c186e; /* rgb */ color: rgb(76, 24, 110); /* oklch */ color: oklch(33.9% 0.141 308.0);
Tailwind
colors: {
custom: {
50: '#825b98',
500: '#4c186e',
950: '#000000',
},
}SCSS
$custom: #4c186e; $custom-light: #825b98; $custom-dark: #000000;
JSON
{
"hex": "#4c186e",
"rgb": {
"r": 76,
"g": 24,
"b": 110
},
"hsl": {
"h": 276.279,
"s": 64.179,
"l": 26.275
},
"oklch": {
"l": 0.33909,
"c": 0.14125,
"h": 308
},
"luminance": 0.03316
}Semantic roles & 50–950 ramp
primary
#4C186E
secondary
#66A43E
accent
#E74182
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E