Skip to content

#ff5fe2

a light, electric magenta / pink · warm · closest name: violet

RGB
255, 95, 226
HSL
311°, 100%, 69%
CMYK
0, 63, 11, 0
Luminance
0.3494

Every format

HEX#ff5fe2
RGBrgb(255, 95, 226)
HSLhsl(311, 100%, 69%)
CMYKcmyk(0%, 63%, 11%, 0%)
LABlab(65.7 74.5 -36.2)
LCHlch(65.7 82.8 334.1)
OKLCHoklch(0.736 0.239 335.6)

Copy-ready code

/* CSS */
color: #ff5fe2;
background-color: #ff5fe2;
/* Tailwind (arbitrary) */
class="text-[#ff5fe2] bg-[#ff5fe2]"
/* SCSS */
$brand: #ff5fe2;
/* SwiftUI */
Color(red: 1.000, green: 0.373, blue: 0.886)
/* Android */
Color.parseColor("#ff5fe2")

Accessibility — WCAG contrast

Aa
#ff5fe2 on white: 2.63:1
AA ✗ fail · AA-large · AAA
Aa
#ff5fe2 on black: 7.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green37.3%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta62.7%
Yellow11.4%
Key (black)0.0%

Color previews

#ff5fe2 text on a black background

contrast 7.99:1

Card sample

#ff5fe2 text on a white background

contrast 2.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 95, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 95, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff5fe2;
background: linear-gradient(135deg, #ff5fe2, #FF5F77);

Monochromatic scale

Palettes built from #ff5fe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff5fe2 in the Color Lab