Skip to content

#f021ff

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

RGB
240, 33, 255
HSL
296°, 100%, 57%
CMYK
6, 87, 0, 0
Luminance
0.2683

Every format

HEX#f021ff
RGBrgb(240, 33, 255)
HSLhsl(296, 100%, 57%)
CMYKcmyk(6%, 87%, 0%, 0%)
LABlab(58.8 93.0 -63.4)
LCHlch(58.8 112.5 325.7)
OKLCHoklch(0.686 0.308 324.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f021ff on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#f021ff on black: 6.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green12.9%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta87.1%
Yellow0.0%
Key (black)0.0%

Color previews

#f021ff text on a black background

contrast 6.37:1

Card sample

#f021ff text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f021ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f021ff in the Color Lab