Skip to content

#9b2fcc

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

RGB
155, 47, 204
HSL
281°, 63%, 49%
CMYK
24, 77, 0, 20
Luminance
0.1336

Every format

HEX#9b2fcc
RGBrgb(155, 47, 204)
HSLhsl(281, 63%, 49%)
CMYKcmyk(24%, 77%, 0%, 20%)
LABlab(43.3 66.6 -60.2)
LCHlch(43.3 89.8 317.9)
OKLCHoklch(0.541 0.231 312.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2fcc on white: 5.72:1
AA ✓ pass · AA-large · AAA
Aa
#9b2fcc on black: 3.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green18.4%
Blue80.0%

CMYK percentages

Cyan24.0%
Magenta77.0%
Yellow0.0%
Key (black)20.0%

Color previews

#9b2fcc text on a black background

contrast 3.67:1

Card sample

#9b2fcc text on a white background

contrast 5.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2fcc in the Color Lab