Skip to content

#9d2abd

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

RGB
157, 42, 189
HSL
287°, 64%, 45%
CMYK
17, 78, 0, 26
Luminance
0.1250

Every format

HEX#9d2abd
RGBrgb(157, 42, 189)
HSLhsl(287, 64%, 45%)
CMYKcmyk(17%, 78%, 0%, 26%)
LABlab(42.0 65.7 -53.6)
LCHlch(42.0 84.8 320.8)
OKLCHoklch(0.529 0.223 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d2abd on white: 6.00:1
AA ✓ pass · AA-large · AAA
Aa
#9d2abd on black: 3.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green16.5%
Blue74.1%

CMYK percentages

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

Color previews

#9d2abd text on a black background

contrast 3.50:1

Card sample

#9d2abd text on a white background

contrast 6.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d2abd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2abd in the Color Lab