#4D2F7E#4D2F7E
#4D2F7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.128 H 297.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #4D2F7E |
|---|---|
| RGB | rgb(77, 47, 126) |
| HSL | hsl(263, 46%, 34%) |
| HSV | hsv(263, 63%, 49%) |
| CMYK | cmyk(38.9%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(27.07, 32.04, -40.02) |
| CIE-LCH | lch(27.07, 51.27, 308.68°) |
| OKLab | oklab(38.49% 0.0593 -0.1138) |
| OKLCH | oklch(38.49% 0.128 297.5) |
| XYZ | xyz(7.8420, 5.1171, 20.3091) |
| Luminance | 0.0512 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.06
Rebeccapurple
#663399
ΔE00 5.94
Blueberry
#464196
ΔE00 7.13
Indigo
#4B0082
ΔE00 8.09
Royal Purple (survey)
#4B006E
ΔE00 8.56
Indigo (survey)
#380282
ΔE00 9.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D2F7E #607E2F
analogous
#2F397E #4D2F7E #752F7E
triadic
#4D2F7E #7E4D2F #2F7E4D
tetradic
#4D2F7E #7E2F39 #607E2F #2F7E75
square
#4D2F7E #7E2F39 #607E2F #2F7E75
split-complementary
#4D2F7E #7E752F #397E2F
monochromatic
#170E25 #321E51 #4D2F7E #6840AB #8863C5
Accessibility & contrast
On white
10.38
#4D2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#4D2F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D2F7E
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D2F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D2F7E | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0D3F7C
Tritanopia (blue-blind)
#424052
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4d2f7e; /* rgb */ color: rgb(77, 47, 126); /* oklch */ color: oklch(38.5% 0.128 297.5);
Tailwind
colors: {
custom: {
50: '#8369a4',
500: '#4d2f7e',
950: '#000000',
},
}SCSS
$custom: #4d2f7e; $custom-light: #8369a4; $custom-dark: #000000;
JSON
{
"hex": "#4d2f7e",
"rgb": {
"r": 77,
"g": 47,
"b": 126
},
"hsl": {
"h": 262.785,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.38493,
"c": 0.12831,
"h": 297.5
},
"luminance": 0.05117
}Semantic roles & 50–950 ramp
primary
#4D2F7E
secondary
#8EAC5D
accent
#D552A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F