Skip to content

#9b2dfb

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

RGB
155, 45, 251
HSL
272°, 96%, 58%
CMYK
38, 82, 0, 2
Luminance
0.1581

Every format

HEX#9b2dfb
RGBrgb(155, 45, 251)
HSLhsl(272, 96%, 58%)
CMYKcmyk(38%, 82%, 0%, 2%)
LABlab(46.7 77.0 -81.4)
LCHlch(46.7 112.0 313.4)
OKLCHoklch(0.576 0.274 302.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2dfb on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#9b2dfb on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green17.6%
Blue98.4%

CMYK percentages

Cyan38.2%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#9b2dfb text on a black background

contrast 4.16:1

Card sample

#9b2dfb text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2dfb in the Color Lab