Skip to content

#9f2fac

a dark, vivid magenta / pink · warm · closest name: purple

RGB
159, 47, 172
HSL
294°, 57%, 43%
CMYK
8, 73, 0, 33
Luminance
0.1238

Every format

HEX#9f2fac
RGBrgb(159, 47, 172)
HSLhsl(294, 57%, 43%)
CMYKcmyk(8%, 73%, 0%, 33%)
LABlab(41.8 61.3 -43.8)
LCHlch(41.8 75.3 324.4)
OKLCHoklch(0.525 0.205 323.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2fac on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#9f2fac on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green18.4%
Blue67.5%

CMYK percentages

Cyan7.6%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#9f2fac text on a black background

contrast 3.48:1

Card sample

#9f2fac text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2fac in the Color Lab