Skip to content

#9a2dbb

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

RGB
154, 45, 187
HSL
286°, 61%, 46%
CMYK
18, 76, 0, 27
Luminance
0.1233

Every format

HEX#9a2dbb
RGBrgb(154, 45, 187)
HSLhsl(286, 61%, 46%)
CMYKcmyk(18%, 76%, 0%, 27%)
LABlab(41.7 63.7 -52.8)
LCHlch(41.7 82.8 320.3)
OKLCHoklch(0.526 0.218 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9a2dbb on white: 6.06:1
AA ✓ pass · AA-large · AAA
Aa
#9a2dbb on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.4%
Green17.6%
Blue73.3%

CMYK percentages

Cyan17.6%
Magenta75.9%
Yellow0.0%
Key (black)26.7%

Color previews

#9a2dbb text on a black background

contrast 3.47:1

Card sample

#9a2dbb text on a white background

contrast 6.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9a2dbb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9a2dbb in the Color Lab