Skip to content

#9e2abd

a balanced, vivid violet · warm · closest name: purple

RGB
158, 42, 189
HSL
287°, 64%, 45%
CMYK
16, 78, 0, 26
Luminance
0.1260

Every format

HEX#9e2abd
RGBrgb(158, 42, 189)
HSLhsl(287, 64%, 45%)
CMYKcmyk(16%, 78%, 0%, 26%)
LABlab(42.1 65.9 -53.3)
LCHlch(42.1 84.7 321.0)
OKLCHoklch(0.531 0.224 317.9)

Copy-ready code

/* CSS */
color: #9e2abd;
background-color: #9e2abd;
/* Tailwind (arbitrary) */
class="text-[#9e2abd] bg-[#9e2abd]"
/* SCSS */
$brand: #9e2abd;
/* SwiftUI */
Color(red: 0.620, green: 0.165, blue: 0.741)
/* Android */
Color.parseColor("#9e2abd")

Accessibility — WCAG contrast

Aa
#9e2abd on white: 5.97:1
AA ✓ pass · AA-large · AAA
Aa
#9e2abd on black: 3.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green16.5%
Blue74.1%

CMYK percentages

Cyan16.4%
Magenta77.8%
Yellow0.0%
Key (black)25.9%

Color previews

#9e2abd text on a black background

contrast 3.52:1

Card sample

#9e2abd text on a white background

contrast 5.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9e2abd;
Background color
Panel with #9e2abd background
background-color: #9e2abd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9e2abd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(158, 42, 189, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(158, 42, 189, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9e2abd;
background: linear-gradient(135deg, #9e2abd, #BD2A7A);

Monochromatic scale

Palettes built from #9e2abd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e2abd in the Color Lab