#4D2F9C#4D2F9C
#4D2F9C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 289.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #4D2F9C |
|---|---|
| RGB | rgb(77, 47, 156) |
| HSL | hsl(257, 54%, 40%) |
| HSV | hsv(257, 70%, 61%) |
| CMYK | cmyk(50.6%, 69.9%, 0%, 38.8%) |
| CIE-LAB | lab(29.44, 40.78, -54.73) |
| CIE-LCH | lch(29.44, 68.25, 306.69°) |
| OKLab | oklab(40.95% 0.0559 -0.157) |
| OKLCH | oklch(40.95% 0.167 289.6) |
| XYZ | xyz(10.0761, 6.0107, 32.0753) |
| Luminance | 0.0601 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.99
Darkslateblue
#483D8B
ΔE00 5.47
Indigo Blue
#3A18B1
ΔE00 5.71
Blueberry
#464196
ΔE00 5.82
Ocean Blue
#4F42B5
ΔE00 6.11
Blue With A Hint Of Purple
#533CC6
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D2F9C #7E9C2F
analogous
#2F479C #4D2F9C #842F9C
triadic
#4D2F9C #9C4D2F #2F9C4D
tetradic
#4D2F9C #9C2F47 #7E9C2F #2F9C84
square
#4D2F9C #9C2F47 #7E9C2F #2F9C84
split-complementary
#4D2F9C #9C842F #479C2F
monochromatic
#1F133E #36216D #4D2F9C #6642C6 #8C71D4
Accessibility & contrast
On white
9.54
#4D2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#4D2F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D2F9C
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D2F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D2F9C | 1.00 | 9.54 | 2.20 | 9.54 |
| #FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#324B62
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4d2f9c; /* rgb */ color: rgb(77, 47, 156); /* oklch */ color: oklch(41.0% 0.167 289.6);
Tailwind
colors: {
custom: {
50: '#866aba',
500: '#4d2f9c',
950: '#000000',
},
}SCSS
$custom: #4d2f9c; $custom-light: #866aba; $custom-dark: #000000;
JSON
{
"hex": "#4d2f9c",
"rgb": {
"r": 77,
"g": 47,
"b": 156
},
"hsl": {
"h": 256.514,
"s": 53.695,
"l": 39.804
},
"oklch": {
"l": 0.40952,
"c": 0.16666,
"h": 289.6
},
"luminance": 0.06011
}Semantic roles & 50–950 ramp
primary
#4D2F9C
secondary
#A6BC6B
accent
#DD4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81