Skip to content

#9b38bc

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

RGB
155, 56, 188
HSL
285°, 54%, 48%
CMYK
18, 70, 0, 26
Luminance
0.1343

Every format

HEX#9b38bc
RGBrgb(155, 56, 188)
HSLhsl(285, 54%, 48%)
CMYKcmyk(18%, 70%, 0%, 26%)
LABlab(43.4 60.0 -50.7)
LCHlch(43.4 78.6 319.8)
OKLCHoklch(0.538 0.207 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b38bc on white: 5.70:1
AA ✓ pass · AA-large · AAA
Aa
#9b38bc on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green22.0%
Blue73.7%

CMYK percentages

Cyan17.6%
Magenta70.2%
Yellow0.0%
Key (black)26.3%

Color previews

#9b38bc text on a black background

contrast 3.69:1

Card sample

#9b38bc text on a white background

contrast 5.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b38bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b38bc in the Color Lab