Skip to content

#fe7df2

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

RGB
254, 125, 242
HSL
306°, 99%, 74%
CMYK
0, 51, 5, 0
Luminance
0.4215

Every format

HEX#fe7df2
RGBrgb(254, 125, 242)
HSLhsl(306, 99%, 74%)
CMYKcmyk(0%, 51%, 5%, 0%)
LABlab(71.0 63.9 -36.9)
LCHlch(71.0 73.8 330.0)
OKLCHoklch(0.776 0.207 331.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fe7df2 on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#fe7df2 on black: 9.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green49.0%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta50.8%
Yellow4.7%
Key (black)0.4%

Color previews

#fe7df2 text on a black background

contrast 9.43:1

Card sample

#fe7df2 text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(254, 125, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 125, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fe7df2;
background: linear-gradient(135deg, #fe7df2, #FE7D9C);

Monochromatic scale

Palettes built from #fe7df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fe7df2 in the Color Lab