Skip to content

#9d2dfe

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

RGB
157, 45, 254
HSL
272°, 99%, 59%
CMYK
38, 82, 0, 0
Luminance
0.1620

Every format

HEX#9d2dfe
RGBrgb(157, 45, 254)
HSLhsl(272, 99%, 59%)
CMYKcmyk(38%, 82%, 0%, 0%)
LABlab(47.2 77.9 -82.2)
LCHlch(47.2 113.2 313.5)
OKLCHoklch(0.581 0.277 302.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d2dfe on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#9d2dfe on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#9d2dfe text on a black background

contrast 4.24:1

Card sample

#9d2dfe text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2dfe in the Color Lab