#4D187F#4D187F
#4D187F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.160 H 301.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).
Color values
| HEX | #4D187F |
|---|---|
| RGB | rgb(77, 24, 127) |
| HSL | hsl(271, 68%, 30%) |
| HSV | hsv(271, 81%, 50%) |
| CMYK | cmyk(39.4%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(22.87, 44.17, -47.46) |
| CIE-LCH | lch(22.87, 64.83, 312.95°) |
| OKLab | oklab(35.52% 0.0842 -0.1355) |
| OKLCH | oklch(35.52% 0.16 301.9) |
| XYZ | xyz(7.2170, 3.7633, 20.4207) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.88
Royal Purple (survey)
#4B006E
ΔE00 4.07
Indigo (survey)
#380282
ΔE00 4.76
Rebeccapurple
#663399
ΔE00 7.58
Indigo Blue
#3A18B1
ΔE00 8.19
Midnight Blue
#191970
ΔE00 8.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D187F #4A7F18
analogous
#1A187F #4D187F #7F187E
triadic
#4D187F #7F4D18 #187F4D
tetradic
#4D187F #7F1A18 #4A7F18 #187E7F
square
#4D187F #7F1A18 #4A7F18 #187E7F
split-complementary
#4D187F #7E7F18 #187F1A
monochromatic
#10051A #2E0E4C #4D187F #6C22B2 #8B38D9
Accessibility & contrast
On white
11.98
#4D187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4D187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D187F
11.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D187F | 1.00 | 11.98 | 1.75 | 11.98 |
| #FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42344B
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #4d187f; /* rgb */ color: rgb(77, 24, 127); /* oklch */ color: oklch(35.5% 0.160 301.9);
Tailwind
colors: {
custom: {
50: '#845ca5',
500: '#4d187f',
950: '#000000',
},
}SCSS
$custom: #4d187f; $custom-light: #845ca5; $custom-dark: #000000;
JSON
{
"hex": "#4d187f",
"rgb": {
"r": 77,
"g": 24,
"b": 127
},
"hsl": {
"h": 270.874,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.35523,
"c": 0.15956,
"h": 301.9
},
"luminance": 0.03763
}Semantic roles & 50–950 ramp
primary
#4D187F
secondary
#78B33F
accent
#EB3D91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F