#4E2F7D#4E2F7D
#4E2F7D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.127 H 298.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).
Color values
| HEX | #4E2F7D |
|---|---|
| RGB | rgb(78, 47, 125) |
| HSL | hsl(264, 45%, 34%) |
| HSV | hsv(264, 62%, 49%) |
| CMYK | cmyk(37.6%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(27.11, 32.01, -39.31) |
| CIE-LCH | lch(27.11, 50.69, 309.15°) |
| OKLab | oklab(38.53% 0.0608 -0.1117) |
| OKLCH | oklch(38.53% 0.127 298.6) |
| XYZ | xyz(7.8592, 5.1333, 19.9748) |
| Luminance | 0.0513 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.28
Rebeccapurple
#663399
ΔE00 5.93
Blueberry
#464196
ΔE00 7.37
Indigo
#4B0082
ΔE00 8.14
Royal Purple (survey)
#4B006E
ΔE00 8.49
Indigo (survey)
#380282
ΔE00 9.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E2F7D #5E7D2F
analogous
#2F377D #4E2F7D #752F7D
triadic
#4E2F7D #7D4E2F #2F7D4E
tetradic
#4E2F7D #7D2F37 #5E7D2F #2F7D75
square
#4E2F7D #7D2F37 #5E7D2F #2F7D75
split-complementary
#4E2F7D #7D752F #377D2F
monochromatic
#160E24 #321E51 #4E2F7D #6A40A9 #8962C4
Accessibility & contrast
On white
10.36
#4E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#4E2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E2F7D
10.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E2F7D | 1.00 | 10.36 | 2.03 | 10.36 |
| #FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#113F7B
Tritanopia (blue-blind)
#434051
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4e2f7d; /* rgb */ color: rgb(78, 47, 125); /* oklch */ color: oklch(38.5% 0.127 298.6);
Tailwind
colors: {
custom: {
50: '#8369a3',
500: '#4e2f7d',
950: '#000000',
},
}SCSS
$custom: #4e2f7d; $custom-light: #8369a3; $custom-dark: #000000;
JSON
{
"hex": "#4e2f7d",
"rgb": {
"r": 78,
"g": 47,
"b": 125
},
"hsl": {
"h": 263.846,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.3853,
"c": 0.12714,
"h": 298.6
},
"luminance": 0.05133
}Semantic roles & 50–950 ramp
primary
#4E2F7D
secondary
#8CAB5D
accent
#D553A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F