#4D198E#4D198E
#4D198E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 296.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #4D198E |
|---|---|
| RGB | rgb(77, 25, 142) |
| HSL | hsl(267, 70%, 33%) |
| HSV | hsv(267, 82%, 56%) |
| CMYK | cmyk(45.8%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(24.40, 47.58, -54.36) |
| CIE-LCH | lch(24.40, 72.24, 311.19°) |
| OKLab | oklab(37.02% 0.0787 -0.1558) |
| OKLCH | oklch(37.02% 0.175 296.8) |
| XYZ | xyz(8.2894, 4.2259, 25.9649) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.45
Indigo (survey)
#380282
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.78
Royal Purple (survey)
#4B006E
ΔE00 6.14
Rebeccapurple
#663399
ΔE00 6.87
Ultramarine
#2000B1
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D198E #5A8E19
analogous
#191F8E #4D198E #88198E
triadic
#4D198E #8E4D19 #198E4D
tetradic
#4D198E #8E191F #5A8E19 #198E88
square
#4D198E #8E191F #5A8E19 #198E88
split-complementary
#4D198E #8E8819 #1F8E19
monochromatic
#150726 #31105A #4D198E #6922C2 #8843DE
Accessibility & contrast
On white
11.38
#4D198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#4D198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D198E
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D198E | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3B3B54
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4d198e; /* rgb */ color: rgb(77, 25, 142); /* oklch */ color: oklch(37.0% 0.175 296.8);
Tailwind
colors: {
custom: {
50: '#865db0',
500: '#4d198e',
950: '#000000',
},
}SCSS
$custom: #4d198e; $custom-light: #865db0; $custom-dark: #000000;
JSON
{
"hex": "#4d198e",
"rgb": {
"r": 77,
"g": 25,
"b": 142
},
"hsl": {
"h": 266.667,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.37015,
"c": 0.17453,
"h": 296.8
},
"luminance": 0.04226
}Semantic roles & 50–950 ramp
primary
#4D198E
secondary
#88BF44
accent
#ED3B9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980