Skip to content

#f02fac

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

RGB
240, 47, 172
HSL
321°, 87%, 56%
CMYK
0, 80, 28, 6
Luminance
0.2354

Every format

HEX#f02fac
RGBrgb(240, 47, 172)
HSLhsl(321, 87%, 56%)
CMYKcmyk(0%, 80%, 28%, 6%)
LABlab(55.6 79.2 -21.2)
LCHlch(55.6 82.0 345.0)
OKLCHoklch(0.650 0.248 346.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02fac on white: 3.68:1
AA ✗ fail · AA-large · AAA
Aa
#f02fac on black: 5.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green18.4%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta80.4%
Yellow28.3%
Key (black)5.9%

Color previews

#f02fac text on a black background

contrast 5.71:1

Card sample

#f02fac text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f02fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02fac in the Color Lab