Skip to content

#9c2dfd

a balanced, electric violet · warm · closest name: blue

RGB
156, 45, 253
HSL
272°, 98%, 58%
CMYK
38, 82, 0, 1
Luminance
0.1604

Every format

HEX#9c2dfd
RGBrgb(156, 45, 253)
HSLhsl(272, 98%, 58%)
CMYKcmyk(38%, 82%, 0%, 1%)
LABlab(47.0 77.5 -82.0)
LCHlch(47.0 112.8 313.4)
OKLCHoklch(0.579 0.276 301.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2dfd on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#9c2dfd on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green17.6%
Blue99.2%

CMYK percentages

Cyan38.3%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#9c2dfd text on a black background

contrast 4.21:1

Card sample

#9c2dfd text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2dfd in the Color Lab