Skip to content

#9d3abc

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

RGB
157, 58, 188
HSL
286°, 53%, 48%
CMYK
17, 69, 0, 26
Luminance
0.1383

Every format

HEX#9d3abc
RGBrgb(157, 58, 188)
HSLhsl(286, 53%, 48%)
CMYKcmyk(17%, 69%, 0%, 26%)
LABlab(44.0 59.6 -49.8)
LCHlch(44.0 77.7 320.1)
OKLCHoklch(0.543 0.205 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d3abc on white: 5.58:1
AA ✓ pass · AA-large · AAA
Aa
#9d3abc on black: 3.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green22.7%
Blue73.7%

CMYK percentages

Cyan16.5%
Magenta69.1%
Yellow0.0%
Key (black)26.3%

Color previews

#9d3abc text on a black background

contrast 3.77:1

Card sample

#9d3abc text on a white background

contrast 5.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 58, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 58, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9d3abc;
background: linear-gradient(135deg, #9d3abc, #BC3A84);

Monochromatic scale

Palettes built from #9d3abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d3abc in the Color Lab