Skip to content

#f22fac

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

RGB
242, 47, 172
HSL
322°, 88%, 57%
CMYK
0, 81, 29, 5
Luminance
0.2389

Every format

HEX#f22fac
RGBrgb(242, 47, 172)
HSLhsl(322, 88%, 57%)
CMYKcmyk(0%, 81%, 29%, 5%)
LABlab(56.0 79.7 -20.6)
LCHlch(56.0 82.3 345.5)
OKLCHoklch(0.654 0.249 347.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f22fac on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#f22fac on black: 5.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green18.4%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta80.6%
Yellow28.9%
Key (black)5.1%

Color previews

#f22fac text on a black background

contrast 5.78:1

Card sample

#f22fac text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f22fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f22fac in the Color Lab