Skip to content

#9c2cdf

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

RGB
156, 44, 223
HSL
278°, 74%, 52%
CMYK
30, 80, 0, 13
Luminance
0.1420

Every format

HEX#9c2cdf
RGBrgb(156, 44, 223)
HSLhsl(278, 74%, 52%)
CMYKcmyk(30%, 80%, 0%, 13%)
LABlab(44.5 71.6 -69.2)
LCHlch(44.5 99.5 316.0)
OKLCHoklch(0.554 0.251 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2cdf on white: 5.47:1
AA ✓ pass · AA-large · AAA
Aa
#9c2cdf on black: 3.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green17.3%
Blue87.5%

CMYK percentages

Cyan30.0%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#9c2cdf text on a black background

contrast 3.84:1

Card sample

#9c2cdf text on a white background

contrast 5.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2cdf in the Color Lab