#4D197F#4D197F
#4D197F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 301.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #4D197F |
|---|---|
| RGB | rgb(77, 25, 127) |
| HSL | hsl(271, 67%, 30%) |
| HSV | hsv(271, 80%, 50%) |
| CMYK | cmyk(39.4%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(23.02, 43.76, -47.22) |
| CIE-LCH | lch(23.02, 64.38, 312.82°) |
| OKLab | oklab(35.62% 0.0834 -0.1348) |
| OKLCH | oklch(35.62% 0.159 301.7) |
| XYZ | xyz(7.2380, 3.8053, 20.4277) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.05
Royal Purple (survey)
#4B006E
ΔE00 4.19
Indigo (survey)
#380282
ΔE00 4.87
Rebeccapurple
#663399
ΔE00 7.48
Indigo Blue
#3A18B1
ΔE00 8.20
Midnight Blue
#191970
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D197F #4B7F19
analogous
#1A197F #4D197F #7F197E
triadic
#4D197F #7F4D19 #197F4D
tetradic
#4D197F #7F1A19 #4B7F19 #197E7F
square
#4D197F #7F1A19 #4B7F19 #197E7F
split-complementary
#4D197F #7E7F19 #197F1A
monochromatic
#10051A #2E0F4C #4D197F #6C23B2 #8B3AD8
Accessibility & contrast
On white
11.93
#4D197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#4D197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D197F
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D197F | 1.00 | 11.93 | 1.76 | 11.93 |
| #FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42344C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #4d197f; /* rgb */ color: rgb(77, 25, 127); /* oklch */ color: oklch(35.6% 0.159 301.7);
Tailwind
colors: {
custom: {
50: '#845ca5',
500: '#4d197f',
950: '#000000',
},
}SCSS
$custom: #4d197f; $custom-light: #845ca5; $custom-dark: #000000;
JSON
{
"hex": "#4d197f",
"rgb": {
"r": 77,
"g": 25,
"b": 127
},
"hsl": {
"h": 270.588,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.35624,
"c": 0.15853,
"h": 301.7
},
"luminance": 0.03805
}Semantic roles & 50–950 ramp
primary
#4D197F
secondary
#79B341
accent
#EA3E92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F