Skip to content

#4e2f9d

a dark, vivid violet · warm · closest name: indigo

RGB
78, 47, 157
HSL
257°, 54%, 40%
CMYK
50, 70, 0, 38
Luminance
0.0609

Every format

HEX#4e2f9d
RGBrgb(78, 47, 157)
HSLhsl(257, 54%, 40%)
CMYKcmyk(50%, 70%, 0%, 38%)
LABlab(29.6 41.3 -55.0)
LCHlch(29.6 68.8 306.9)
OKLCHoklch(0.411 0.168 289.9)

Copy-ready code

/* CSS */
color: #4e2f9d;
background-color: #4e2f9d;
/* Tailwind (arbitrary) */
class="text-[#4e2f9d] bg-[#4e2f9d]"
/* SCSS */
$brand: #4e2f9d;
/* SwiftUI */
Color(red: 0.306, green: 0.184, blue: 0.616)
/* Android */
Color.parseColor("#4e2f9d")

Accessibility — WCAG contrast

Aa
#4e2f9d on white: 9.47:1
AA ✓ pass · AA-large · AAA
Aa
#4e2f9d on black: 2.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.6%
Green18.4%
Blue61.6%

CMYK percentages

Cyan50.3%
Magenta70.1%
Yellow0.0%
Key (black)38.4%

Color previews

#4e2f9d text on a black background

contrast 2.22:1

Card sample

#4e2f9d text on a white background

contrast 9.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4e2f9d;
Background color
Panel with #4e2f9d background
background-color: #4e2f9d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4e2f9d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(78, 47, 157, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(78, 47, 157, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4e2f9d;
background: linear-gradient(135deg, #4e2f9d, #972F9D);

Monochromatic scale

Palettes built from #4e2f9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4e2f9d in the Color Lab