Skip to content

#9f2fcc

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

RGB
159, 47, 204
HSL
283°, 63%, 49%
CMYK
22, 77, 0, 20
Luminance
0.1376

Every format

HEX#9f2fcc
RGBrgb(159, 47, 204)
HSLhsl(283, 63%, 49%)
CMYKcmyk(22%, 77%, 0%, 20%)
LABlab(43.9 67.3 -59.2)
LCHlch(43.9 89.6 318.6)
OKLCHoklch(0.546 0.232 313.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red62.4%
Green18.4%
Blue80.0%

CMYK percentages

Cyan22.1%
Magenta77.0%
Yellow0.0%
Key (black)20.0%

Color previews

#9f2fcc text on a black background

contrast 3.75:1

Card sample

#9f2fcc text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2fcc in the Color Lab