Skip to content

#9b2ac4

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

RGB
155, 42, 196
HSL
284°, 65%, 47%
CMYK
21, 79, 0, 23
Luminance
0.1261

Every format

HEX#9b2ac4
RGBrgb(155, 42, 196)
HSLhsl(284, 65%, 47%)
CMYKcmyk(21%, 79%, 0%, 23%)
LABlab(42.2 66.6 -57.4)
LCHlch(42.2 88.0 319.3)
OKLCHoklch(0.531 0.229 314.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2ac4 on white: 5.96:1
AA ✓ pass · AA-large · AAA
Aa
#9b2ac4 on black: 3.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green16.5%
Blue76.9%

CMYK percentages

Cyan20.9%
Magenta78.6%
Yellow0.0%
Key (black)23.1%

Color previews

#9b2ac4 text on a black background

contrast 3.52:1

Card sample

#9b2ac4 text on a white background

contrast 5.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2ac4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b2ac4 in the Color Lab