#4E2F7E#4E2F7E
#4E2F7E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.128 H 298.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4E2F7E |
|---|---|
| RGB | rgb(78, 47, 126) |
| HSL | hsl(264, 46%, 34%) |
| HSV | hsv(264, 63%, 49%) |
| CMYK | cmyk(38.1%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(27.18, 32.29, -39.83) |
| CIE-LCH | lch(27.18, 51.27, 309.03°) |
| OKLab | oklab(38.61% 0.0608 -0.1132) |
| OKLCH | oklch(38.61% 0.128 298.2) |
| XYZ | xyz(7.9234, 5.1590, 20.3130) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.19
Rebeccapurple
#663399
ΔE00 5.81
Blueberry
#464196
ΔE00 7.25
Indigo
#4B0082
ΔE00 8.07
Royal Purple (survey)
#4B006E
ΔE00 8.51
Indigo (survey)
#380282
ΔE00 9.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E2F7E #5F7E2F
analogous
#2F387E #4E2F7E #762F7E
triadic
#4E2F7E #7E4E2F #2F7E4E
tetradic
#4E2F7E #7E2F38 #5F7E2F #2F7E76
square
#4E2F7E #7E2F38 #5F7E2F #2F7E76
split-complementary
#4E2F7E #7E762F #387E2F
monochromatic
#170E25 #321E51 #4E2F7E #6A40AB #8963C5
Accessibility & contrast
On white
10.34
#4E2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#4E2F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E2F7E
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E2F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E2F7E | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0F3F7C
Tritanopia (blue-blind)
#434052
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4e2f7e; /* rgb */ color: rgb(78, 47, 126); /* oklch */ color: oklch(38.6% 0.128 298.2);
Tailwind
colors: {
custom: {
50: '#8369a4',
500: '#4e2f7e',
950: '#000000',
},
}SCSS
$custom: #4e2f7e; $custom-light: #8369a4; $custom-dark: #000000;
JSON
{
"hex": "#4e2f7e",
"rgb": {
"r": 78,
"g": 47,
"b": 126
},
"hsl": {
"h": 263.544,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.38605,
"c": 0.12845,
"h": 298.2
},
"luminance": 0.05159
}Semantic roles & 50–950 ramp
primary
#4E2F7E
secondary
#8DAC5D
accent
#D552A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F