#4D147C#4D147C
#4D147C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.160 H 303.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #4D147C |
|---|---|
| RGB | rgb(77, 20, 124) |
| HSL | hsl(273, 72%, 28%) |
| HSV | hsv(273, 84%, 49%) |
| CMYK | cmyk(37.9%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(22.06, 44.99, -46.88) |
| CIE-LCH | lch(22.06, 64.97, 313.83°) |
| OKLab | oklab(34.88% 0.0884 -0.1338) |
| OKLCH | oklch(34.88% 0.16 303.5) |
| XYZ | xyz(6.9480, 3.5333, 19.3808) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.50
Royal Purple (survey)
#4B006E
ΔE00 3.28
Indigo (survey)
#380282
ΔE00 4.62
Rebeccapurple
#663399
ΔE00 8.20
Midnight Blue
#191970
ΔE00 8.58
Indigo Blue
#3A18B1
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D147C #437C14
analogous
#19147C #4D147C #7C1477
triadic
#4D147C #7C4D14 #147C4D
tetradic
#4D147C #7C1914 #437C14 #14777C
square
#4D147C #7C1914 #437C14 #14777C
split-complementary
#4D147C #777C14 #147C19
monochromatic
#10041A #2C0B47 #4D147C #6E1DB1 #8E2DDD
Accessibility & contrast
On white
12.31
#4D147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4D147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D147C
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D147C | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#433149
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4d147c; /* rgb */ color: rgb(77, 20, 124); /* oklch */ color: oklch(34.9% 0.160 303.5);
Tailwind
colors: {
custom: {
50: '#845aa3',
500: '#4d147c',
950: '#000000',
},
}SCSS
$custom: #4d147c; $custom-light: #845aa3; $custom-dark: #000000;
JSON
{
"hex": "#4d147c",
"rgb": {
"r": 77,
"g": 20,
"b": 124
},
"hsl": {
"h": 272.885,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.34876,
"c": 0.16035,
"h": 303.5
},
"luminance": 0.03533
}Semantic roles & 50–950 ramp
primary
#4D147C
secondary
#70B23A
accent
#EF398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F