Skip to content

#9b2fdf

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

RGB
155, 47, 223
HSL
277°, 73%, 53%
CMYK
31, 79, 0, 13
Luminance
0.1433

Every format

HEX#9b2fdf
RGBrgb(155, 47, 223)
HSLhsl(277, 73%, 53%)
CMYKcmyk(31%, 79%, 0%, 13%)
LABlab(44.7 70.5 -68.8)
LCHlch(44.7 98.5 315.7)
OKLCHoklch(0.555 0.248 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2fdf on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#9b2fdf on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green18.4%
Blue87.5%

CMYK percentages

Cyan30.5%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#9b2fdf text on a black background

contrast 3.87:1

Card sample

#9b2fdf text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2fdf in the Color Lab