Skip to content

#9c2fac

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

RGB
156, 47, 172
HSL
292°, 57%, 43%
CMYK
9, 73, 0, 33
Luminance
0.1208

Every format

HEX#9c2fac
RGBrgb(156, 47, 172)
HSLhsl(292, 57%, 43%)
CMYKcmyk(9%, 73%, 0%, 33%)
LABlab(41.3 60.6 -44.6)
LCHlch(41.3 75.3 323.7)
OKLCHoklch(0.521 0.203 322.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2fac on white: 6.15:1
AA ✓ pass · AA-large · AAA
Aa
#9c2fac on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green18.4%
Blue67.5%

CMYK percentages

Cyan9.3%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#9c2fac text on a black background

contrast 3.42:1

Card sample

#9c2fac text on a white background

contrast 6.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2fac in the Color Lab