Skip to content

#9c2abf

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

RGB
156, 42, 191
HSL
286°, 64%, 46%
CMYK
18, 78, 0, 25
Luminance
0.1249

Every format

HEX#9c2abf
RGBrgb(156, 42, 191)
HSLhsl(286, 64%, 46%)
CMYKcmyk(18%, 78%, 0%, 25%)
LABlab(42.0 65.9 -54.8)
LCHlch(42.0 85.7 320.2)
OKLCHoklch(0.529 0.225 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2abf on white: 6.00:1
AA ✓ pass · AA-large · AAA
Aa
#9c2abf on black: 3.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green16.5%
Blue74.9%

CMYK percentages

Cyan18.3%
Magenta78.0%
Yellow0.0%
Key (black)25.1%

Color previews

#9c2abf text on a black background

contrast 3.50:1

Card sample

#9c2abf text on a white background

contrast 6.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2abf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9c2abf in the Color Lab