Skip to content

#9e2dbe

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

RGB
158, 45, 190
HSL
287°, 62%, 46%
CMYK
17, 76, 0, 26
Luminance
0.1286

Every format

HEX#9e2dbe
RGBrgb(158, 45, 190)
HSLhsl(287, 62%, 46%)
CMYKcmyk(17%, 76%, 0%, 26%)
LABlab(42.6 65.1 -53.2)
LCHlch(42.6 84.1 320.7)
OKLCHoklch(0.534 0.222 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e2dbe on white: 5.88:1
AA ✓ pass · AA-large · AAA
Aa
#9e2dbe on black: 3.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green17.6%
Blue74.5%

CMYK percentages

Cyan16.8%
Magenta76.3%
Yellow0.0%
Key (black)25.5%

Color previews

#9e2dbe text on a black background

contrast 3.57:1

Card sample

#9e2dbe text on a white background

contrast 5.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9e2dbe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e2dbe in the Color Lab