Skip to content

#9d2bdf

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

RGB
157, 43, 223
HSL
278°, 74%, 52%
CMYK
30, 81, 0, 13
Luminance
0.1422

Every format

HEX#9d2bdf
RGBrgb(157, 43, 223)
HSLhsl(278, 74%, 52%)
CMYKcmyk(30%, 81%, 0%, 13%)
LABlab(44.5 72.0 -69.1)
LCHlch(44.5 99.8 316.2)
OKLCHoklch(0.555 0.252 308.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red61.6%
Green16.9%
Blue87.5%

CMYK percentages

Cyan29.6%
Magenta80.7%
Yellow0.0%
Key (black)12.5%

Color previews

#9d2bdf text on a black background

contrast 3.84:1

Card sample

#9d2bdf text on a white background

contrast 5.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d2bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2bdf in the Color Lab