Skip to content

#9e2dbf

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

RGB
158, 45, 191
HSL
286°, 62%, 46%
CMYK
17, 76, 0, 25
Luminance
0.1291

Every format

HEX#9e2dbf
RGBrgb(158, 45, 191)
HSLhsl(286, 62%, 46%)
CMYKcmyk(17%, 76%, 0%, 25%)
LABlab(42.6 65.3 -53.7)
LCHlch(42.6 84.5 320.5)
OKLCHoklch(0.534 0.223 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e2dbf on white: 5.86:1
AA ✓ pass · AA-large · AAA
Aa
#9e2dbf on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green17.6%
Blue74.9%

CMYK percentages

Cyan17.3%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#9e2dbf text on a black background

contrast 3.58:1

Card sample

#9e2dbf text on a white background

contrast 5.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9e2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e2dbf in the Color Lab