Skip to content

#9f2bbc

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

RGB
159, 43, 188
HSL
288°, 63%, 45%
CMYK
15, 77, 0, 26
Luminance
0.1273

Every format

HEX#9f2bbc
RGBrgb(159, 43, 188)
HSLhsl(288, 63%, 45%)
CMYKcmyk(15%, 77%, 0%, 26%)
LABlab(42.4 65.5 -52.4)
LCHlch(42.4 83.9 321.4)
OKLCHoklch(0.532 0.222 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2bbc on white: 5.92:1
AA ✓ pass · AA-large · AAA
Aa
#9f2bbc on black: 3.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green16.9%
Blue73.7%

CMYK percentages

Cyan15.4%
Magenta77.1%
Yellow0.0%
Key (black)26.3%

Color previews

#9f2bbc text on a black background

contrast 3.55:1

Card sample

#9f2bbc text on a white background

contrast 5.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2bbc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2bbc in the Color Lab