Skip to content

#9b40af

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

RGB
155, 64, 175
HSL
289°, 46%, 47%
CMYK
11, 63, 0, 31
Luminance
0.1373

Every format

HEX#9b40af
RGBrgb(155, 64, 175)
HSLhsl(289, 46%, 47%)
CMYKcmyk(11%, 63%, 0%, 31%)
LABlab(43.9 54.0 -42.4)
LCHlch(43.9 68.7 321.9)
OKLCHoklch(0.539 0.184 320.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b40af on white: 5.61:1
AA ✓ pass · AA-large · AAA
Aa
#9b40af on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green25.1%
Blue68.6%

CMYK percentages

Cyan11.4%
Magenta63.4%
Yellow0.0%
Key (black)31.4%

Color previews

#9b40af text on a black background

contrast 3.75:1

Card sample

#9b40af text on a white background

contrast 5.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b40af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b40af in the Color Lab