#4D156F#4D156F
#4D156F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.146 H 308.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #4D156F |
|---|---|
| RGB | rgb(77, 21, 111) |
| HSL | hsl(277, 68%, 26%) |
| HSV | hsv(277, 81%, 44%) |
| CMYK | cmyk(30.6%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(21.06, 41.49, -40.16) |
| CIE-LCH | lch(21.06, 57.74, 315.93°) |
| OKLab | oklab(33.83% 0.0912 -0.1141) |
| OKLCH | oklch(33.83% 0.146 308.6) |
| XYZ | xyz(6.1974, 3.2619, 15.3390) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.62
Indigo
#4B0082
ΔE00 4.42
Indigo (survey)
#380282
ΔE00 6.35
Plum Purple
#4E0550
ΔE00 6.97
Deep Violet
#490648
ΔE00 8.38
Darkish Purple
#751973
ΔE00 8.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D156F #376F15
analogous
#20156F #4D156F #6F1564
triadic
#4D156F #6F4D15 #156F4D
tetradic
#4D156F #6F2015 #376F15 #15646F
square
#4D156F #6F2015 #376F15 #15646F
split-complementary
#4D156F #646F15 #156F20
monochromatic
#12051A #290B3C #4D156F #711FA2 #9428D6
Accessibility & contrast
On white
12.71
#4D156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4D156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D156F
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D156F | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#482B42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4d156f; /* rgb */ color: rgb(77, 21, 111); /* oklch */ color: oklch(33.8% 0.146 308.6);
Tailwind
colors: {
custom: {
50: '#835a99',
500: '#4d156f',
950: '#000000',
},
}SCSS
$custom: #4d156f; $custom-light: #835a99; $custom-dark: #000000;
JSON
{
"hex": "#4d156f",
"rgb": {
"r": 77,
"g": 21,
"b": 111
},
"hsl": {
"h": 277.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.33825,
"c": 0.14603,
"h": 308.6
},
"luminance": 0.03262
}Semantic roles & 50–950 ramp
primary
#4D156F
secondary
#63A53A
accent
#EB3D7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E