Skip to content

#fb2acf

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

RGB
251, 42, 207
HSL
313°, 96%, 58%
CMYK
0, 83, 18, 2
Luminance
0.2667

Every format

HEX#fb2acf
RGBrgb(251, 42, 207)
HSLhsl(313, 96%, 58%)
CMYKcmyk(0%, 83%, 18%, 2%)
LABlab(58.7 86.8 -36.5)
LCHlch(58.7 94.1 337.2)
OKLCHoklch(0.681 0.277 339.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fb2acf on white: 3.32:1
AA ✗ fail · AA-large · AAA
Aa
#fb2acf on black: 6.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green16.5%
Blue81.2%

CMYK percentages

Cyan0.0%
Magenta83.3%
Yellow17.5%
Key (black)1.6%

Color previews

#fb2acf text on a black background

contrast 6.33:1

Card sample

#fb2acf text on a white background

contrast 3.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fb2acf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fb2acf in the Color Lab