#4D2F7D#4D2F7D
#4D2F7D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.127 H 297.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).
Color values
| HEX | #4D2F7D |
|---|---|
| RGB | rgb(77, 47, 125) |
| HSL | hsl(263, 45%, 34%) |
| HSV | hsv(263, 62%, 49%) |
| CMYK | cmyk(38.4%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(26.99, 31.76, -39.51) |
| CIE-LCH | lch(26.99, 50.69, 308.79°) |
| OKLab | oklab(38.42% 0.0594 -0.1123) |
| OKLCH | oklch(38.42% 0.127 297.9) |
| XYZ | xyz(7.7778, 5.0914, 19.9710) |
| Luminance | 0.0509 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.15
Rebeccapurple
#663399
ΔE00 6.05
Blueberry
#464196
ΔE00 7.25
Indigo
#4B0082
ΔE00 8.15
Royal Purple (survey)
#4B006E
ΔE00 8.54
Indigo (survey)
#380282
ΔE00 9.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D2F7D #5F7D2F
analogous
#2F387D #4D2F7D #742F7D
triadic
#4D2F7D #7D4D2F #2F7D4D
tetradic
#4D2F7D #7D2F38 #5F7D2F #2F7D74
square
#4D2F7D #7D2F38 #5F7D2F #2F7D74
split-complementary
#4D2F7D #7D742F #387D2F
monochromatic
#160E24 #321E51 #4D2F7D #6840A9 #8862C4
Accessibility & contrast
On white
10.41
#4D2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#4D2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D2F7D
10.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D2F7D | 1.00 | 10.41 | 2.02 | 10.41 |
| #FFFFFF | 10.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#0F3F7B
Tritanopia (blue-blind)
#424051
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4d2f7d; /* rgb */ color: rgb(77, 47, 125); /* oklch */ color: oklch(38.4% 0.127 297.9);
Tailwind
colors: {
custom: {
50: '#8269a3',
500: '#4d2f7d',
950: '#000000',
},
}SCSS
$custom: #4d2f7d; $custom-light: #8269a3; $custom-dark: #000000;
JSON
{
"hex": "#4d2f7d",
"rgb": {
"r": 77,
"g": 47,
"b": 125
},
"hsl": {
"h": 263.077,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.38417,
"c": 0.12699,
"h": 297.9
},
"luminance": 0.05091
}Semantic roles & 50–950 ramp
primary
#4D2F7D
secondary
#8DAB5D
accent
#D553A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F