Skip to content

#fb2df2

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

RGB
251, 45, 242
HSL
303°, 96%, 58%
CMYK
0, 82, 4, 2
Luminance
0.2880

Every format

HEX#fb2df2
RGBrgb(251, 45, 242)
HSLhsl(303, 96%, 58%)
CMYKcmyk(0%, 82%, 4%, 2%)
LABlab(60.6 90.8 -53.2)
LCHlch(60.6 105.3 329.6)
OKLCHoklch(0.700 0.297 330.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fb2df2 on white: 3.11:1
AA ✗ fail · AA-large · AAA
Aa
#fb2df2 on black: 6.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green17.6%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta82.1%
Yellow3.6%
Key (black)1.6%

Color previews

#fb2df2 text on a black background

contrast 6.76:1

Card sample

#fb2df2 text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fb2df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fb2df2 in the Color Lab