Skip to content

#9a2dbf

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

RGB
154, 45, 191
HSL
285°, 62%, 46%
CMYK
19, 76, 0, 25
Luminance
0.1251

Every format

HEX#9a2dbf
RGBrgb(154, 45, 191)
HSLhsl(285, 62%, 46%)
CMYKcmyk(19%, 76%, 0%, 25%)
LABlab(42.0 64.5 -54.7)
LCHlch(42.0 84.6 319.7)
OKLCHoklch(0.529 0.221 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red60.4%
Green17.6%
Blue74.9%

CMYK percentages

Cyan19.4%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#9a2dbf text on a black background

contrast 3.50:1

Card sample

#9a2dbf text on a white background

contrast 6.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9a2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9a2dbf in the Color Lab