Skip to content

#9b2c7f

a dark, vivid magenta / pink · warm · closest name: purple

RGB
155, 44, 127
HSL
315°, 56%, 39%
CMYK
0, 72, 18, 39
Luminance
0.1030

Every format

HEX#9b2c7f
RGBrgb(155, 44, 127)
HSLhsl(315, 56%, 39%)
CMYKcmyk(0%, 72%, 18%, 39%)
LABlab(38.4 54.0 -22.0)
LCHlch(38.4 58.3 337.9)
OKLCHoklch(0.491 0.171 339.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2c7f on white: 6.86:1
AA ✓ pass · AA-large · AAA
Aa
#9b2c7f on black: 3.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green17.3%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta71.6%
Yellow18.1%
Key (black)39.2%

Color previews

#9b2c7f text on a black background

contrast 3.06:1

Card sample

#9b2c7f text on a white background

contrast 6.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 44, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 44, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b2c7f;
background: linear-gradient(135deg, #9b2c7f, #9B2C35);

Monochromatic scale

Palettes built from #9b2c7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2c7f in the Color Lab