Skip to content

#f22dfb

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

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

Every format

HEX#f22dfb
RGBrgb(242, 45, 251)
HSLhsl(297, 96%, 58%)
CMYKcmyk(4%, 82%, 0%, 2%)
LABlab(59.6 90.5 -59.8)
LCHlch(59.6 108.5 326.5)
OKLCHoklch(0.692 0.299 326.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f22dfb on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#f22dfb on black: 6.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green17.6%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#f22dfb text on a black background

contrast 6.54:1

Card sample

#f22dfb text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f22dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f22dfb in the Color Lab