Skip to content

#f02cff

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

RGB
240, 44, 255
HSL
296°, 100%, 59%
CMYK
6, 83, 0, 0
Luminance
0.2755

Every format

HEX#f02cff
RGBrgb(240, 44, 255)
HSLhsl(296, 100%, 59%)
CMYKcmyk(6%, 83%, 0%, 0%)
LABlab(59.5 91.0 -62.3)
LCHlch(59.5 110.3 325.6)
OKLCHoklch(0.691 0.302 324.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02cff on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#f02cff on black: 6.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green17.3%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#f02cff text on a black background

contrast 6.51:1

Card sample

#f02cff text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f02cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02cff in the Color Lab