Skip to content

#9c2fdf

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

RGB
156, 47, 223
HSL
277°, 73%, 53%
CMYK
30, 79, 0, 13
Luminance
0.1443

Every format

HEX#9c2fdf
RGBrgb(156, 47, 223)
HSLhsl(277, 73%, 53%)
CMYKcmyk(30%, 79%, 0%, 13%)
LABlab(44.8 70.6 -68.6)
LCHlch(44.8 98.5 315.8)
OKLCHoklch(0.557 0.248 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2fdf on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#9c2fdf on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green18.4%
Blue87.5%

CMYK percentages

Cyan30.0%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#9c2fdf text on a black background

contrast 3.89:1

Card sample

#9c2fdf text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2fdf in the Color Lab