Skip to content

#9f2cfe

a balanced, electric violet · warm · closest name: blue

RGB
159, 44, 254
HSL
273°, 99%, 58%
CMYK
37, 83, 0, 0
Luminance
0.1633

Every format

HEX#9f2cfe
RGBrgb(159, 44, 254)
HSLhsl(273, 99%, 58%)
CMYKcmyk(37%, 83%, 0%, 0%)
LABlab(47.4 78.4 -81.9)
LCHlch(47.4 113.4 313.8)
OKLCHoklch(0.583 0.278 302.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f2cfe on white: 4.92:1
AA ✓ pass · AA-large · AAA
Aa
#9f2cfe on black: 4.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green17.3%
Blue99.6%

CMYK percentages

Cyan37.4%
Magenta82.7%
Yellow0.0%
Key (black)0.4%

Color previews

#9f2cfe text on a black background

contrast 4.27:1

Card sample

#9f2cfe text on a white background

contrast 4.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f2cfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f2cfe in the Color Lab