Skip to content

#9f2dbf

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

RGB
159, 45, 191
HSL
287°, 62%, 46%
CMYK
17, 76, 0, 25
Luminance
0.1301

Every format

HEX#9f2dbf
RGBrgb(159, 45, 191)
HSLhsl(287, 62%, 46%)
CMYKcmyk(17%, 76%, 0%, 25%)
LABlab(42.8 65.5 -53.5)
LCHlch(42.8 84.5 320.8)
OKLCHoklch(0.536 0.223 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2dbf on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#9f2dbf on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green17.6%
Blue74.9%

CMYK percentages

Cyan16.8%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#9f2dbf text on a black background

contrast 3.60:1

Card sample

#9f2dbf text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2dbf in the Color Lab