Skip to content

#9b2cdf

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

RGB
155, 44, 223
HSL
277°, 74%, 52%
CMYK
31, 80, 0, 13
Luminance
0.1410

Every format

HEX#9b2cdf
RGBrgb(155, 44, 223)
HSLhsl(277, 74%, 52%)
CMYKcmyk(31%, 80%, 0%, 13%)
LABlab(44.4 71.4 -69.4)
LCHlch(44.4 99.6 315.8)
OKLCHoklch(0.553 0.250 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2cdf on white: 5.50:1
AA ✓ pass · AA-large · AAA
Aa
#9b2cdf on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green17.3%
Blue87.5%

CMYK percentages

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

Color previews

#9b2cdf text on a black background

contrast 3.82:1

Card sample

#9b2cdf text on a white background

contrast 5.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2cdf in the Color Lab