#4A186F#4A186F
#4A186F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.142 H 306.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).
Color values
| HEX | #4A186F |
|---|---|
| RGB | rgb(74, 24, 111) |
| HSL | hsl(274, 64%, 26%) |
| HSV | hsv(274, 78%, 44%) |
| CMYK | cmyk(33.3%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.04, 39.62, -40.21) |
| CIE-LCH | lch(21.04, 56.46, 314.58°) |
| OKLab | oklab(33.72% 0.0838 -0.1143) |
| OKLCH | oklch(33.72% 0.142 306.2) |
| XYZ | xyz(6.0193, 3.2569, 15.3474) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.13
Indigo
#4B0082
ΔE00 4.57
Indigo (survey)
#380282
ΔE00 6.17
Plum Purple
#4E0550
ΔE00 7.42
Dark Indigo
#1F0954
ΔE00 8.30
Midnight Blue
#191970
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A186F #3D6F18
analogous
#1F186F #4A186F #6F1869
triadic
#4A186F #6F4A18 #186F4A
tetradic
#4A186F #6F1F18 #3D6F18 #18696F
square
#4A186F #6F1F18 #3D6F18 #18696F
split-complementary
#4A186F #696F18 #186F1F
monochromatic
#110519 #280D3D #4A186F #6C23A1 #8D2FD2
Accessibility & contrast
On white
12.72
#4A186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4A186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A186F
12.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A186F | 1.00 | 12.72 | 1.65 | 12.72 |
| #FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#432D42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4a186f; /* rgb */ color: rgb(74, 24, 111); /* oklch */ color: oklch(33.7% 0.142 306.2);
Tailwind
colors: {
custom: {
50: '#815b99',
500: '#4a186f',
950: '#000000',
},
}SCSS
$custom: #4a186f; $custom-light: #815b99; $custom-dark: #000000;
JSON
{
"hex": "#4a186f",
"rgb": {
"r": 74,
"g": 24,
"b": 111
},
"hsl": {
"h": 274.483,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.33715,
"c": 0.14176,
"h": 306.2
},
"luminance": 0.03257
}Semantic roles & 50–950 ramp
primary
#4A186F
secondary
#6AA53E
accent
#E74087
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E