Skip to content

#9f2cdc

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

RGB
159, 44, 220
HSL
279°, 72%, 52%
CMYK
28, 80, 0, 14
Luminance
0.1434

Every format

HEX#9f2cdc
RGBrgb(159, 44, 220)
HSLhsl(279, 72%, 52%)
CMYKcmyk(28%, 80%, 0%, 14%)
LABlab(44.7 71.4 -67.1)
LCHlch(44.7 98.0 316.8)
OKLCHoklch(0.556 0.249 310.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2cdc on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#9f2cdc on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green17.3%
Blue86.3%

CMYK percentages

Cyan27.7%
Magenta80.0%
Yellow0.0%
Key (black)13.7%

Color previews

#9f2cdc text on a black background

contrast 3.87:1

Card sample

#9f2cdc text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2cdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2cdc in the Color Lab