Skip to content

#f02fd8

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

RGB
240, 47, 216
HSL
308°, 87%, 56%
CMYK
0, 80, 10, 6
Luminance
0.2552

Every format

HEX#f02fd8
RGBrgb(240, 47, 216)
HSLhsl(308, 87%, 56%)
CMYKcmyk(0%, 80%, 10%, 6%)
LABlab(57.6 84.7 -43.5)
LCHlch(57.6 95.2 332.8)
OKLCHoklch(0.671 0.274 334.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02fd8 on white: 3.44:1
AA ✗ fail · AA-large · AAA
Aa
#f02fd8 on black: 6.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green18.4%
Blue84.7%

CMYK percentages

Cyan0.0%
Magenta80.4%
Yellow10.0%
Key (black)5.9%

Color previews

#f02fd8 text on a black background

contrast 6.10:1

Card sample

#f02fd8 text on a white background

contrast 3.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 47, 216, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 47, 216, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f02fd8;
background: linear-gradient(135deg, #f02fd8, #F02F57);

Monochromatic scale

Palettes built from #f02fd8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02fd8 in the Color Lab