Skip to content

#ff4fec

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

RGB
255, 79, 236
HSL
307°, 100%, 66%
CMYK
0, 69, 8, 0
Luminance
0.3291

Every format

HEX#ff4fec
RGBrgb(255, 79, 236)
HSLhsl(307, 100%, 66%)
CMYKcmyk(0%, 69%, 8%, 0%)
LABlab(64.1 81.7 -44.3)
LCHlch(64.1 93.0 331.5)
OKLCHoklch(0.725 0.265 332.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff4fec on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#ff4fec on black: 7.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green31.0%
Blue92.5%

CMYK percentages

Cyan0.0%
Magenta69.0%
Yellow7.5%
Key (black)0.0%

Color previews

#ff4fec text on a black background

contrast 7.58:1

Card sample

#ff4fec text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff4fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff4fec in the Color Lab