#4D197C#4D197C
#4D197C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.155 H 302.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4D197C |
|---|---|
| RGB | rgb(77, 25, 124) |
| HSL | hsl(272, 66%, 29%) |
| HSV | hsv(272, 80%, 49%) |
| CMYK | cmyk(37.9%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(22.75, 43.00, -45.75) |
| CIE-LCH | lch(22.75, 62.79, 313.22°) |
| OKLab | oklab(35.36% 0.0842 -0.1305) |
| OKLCH | oklch(35.36% 0.155 302.8) |
| XYZ | xyz(7.0454, 3.7283, 19.4133) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.24
Royal Purple (survey)
#4B006E
ΔE00 3.88
Indigo (survey)
#380282
ΔE00 5.10
Rebeccapurple
#663399
ΔE00 7.68
Midnight Blue
#191970
ΔE00 8.46
Indigo Blue
#3A18B1
ΔE00 8.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D197C #487C19
analogous
#1C197C #4D197C #7C197A
triadic
#4D197C #7C4D19 #197C4D
tetradic
#4D197C #7C1C19 #487C19 #197A7C
square
#4D197C #7C1C19 #487C19 #197A7C
split-complementary
#4D197C #7A7C19 #197C1C
monochromatic
#100519 #2D0F49 #4D197C #6D23AF #8C38D7
Accessibility & contrast
On white
12.03
#4D197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4D197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D197C
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D197C | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4d197c; /* rgb */ color: rgb(77, 25, 124); /* oklch */ color: oklch(35.4% 0.155 302.8);
Tailwind
colors: {
custom: {
50: '#845ca3',
500: '#4d197c',
950: '#000000',
},
}SCSS
$custom: #4d197c; $custom-light: #845ca3; $custom-dark: #000000;
JSON
{
"hex": "#4d197c",
"rgb": {
"r": 77,
"g": 25,
"b": 124
},
"hsl": {
"h": 271.515,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.35356,
"c": 0.15532,
"h": 302.8
},
"luminance": 0.03728
}Semantic roles & 50–950 ramp
primary
#4D197C
secondary
#76B040
accent
#E93E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F