Skip to content

#9c2dbf

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

RGB
156, 45, 191
HSL
286°, 62%, 46%
CMYK
18, 76, 0, 25
Luminance
0.1271

Every format

HEX#9c2dbf
RGBrgb(156, 45, 191)
HSLhsl(286, 62%, 46%)
CMYKcmyk(18%, 76%, 0%, 25%)
LABlab(42.3 64.9 -54.2)
LCHlch(42.3 84.6 320.1)
OKLCHoklch(0.532 0.222 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2dbf on white: 5.93:1
AA ✓ pass · AA-large · AAA
Aa
#9c2dbf on black: 3.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green17.6%
Blue74.9%

CMYK percentages

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

Color previews

#9c2dbf text on a black background

contrast 3.54:1

Card sample

#9c2dbf text on a white background

contrast 5.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2dbf in the Color Lab