Skip to content

#f02abc

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

RGB
240, 42, 188
HSL
316°, 87%, 55%
CMYK
0, 83, 22, 6
Luminance
0.2381

Every format

HEX#f02abc
RGBrgb(240, 42, 188)
HSLhsl(316, 87%, 55%)
CMYKcmyk(0%, 83%, 22%, 6%)
LABlab(55.9 82.2 -30.1)
LCHlch(55.9 87.5 339.9)
OKLCHoklch(0.655 0.260 341.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02abc on white: 3.64:1
AA ✗ fail · AA-large · AAA
Aa
#f02abc on black: 5.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green16.5%
Blue73.7%

CMYK percentages

Cyan0.0%
Magenta82.5%
Yellow21.7%
Key (black)5.9%

Color previews

#f02abc text on a black background

contrast 5.76:1

Card sample

#f02abc text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f02abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02abc in the Color Lab