Skip to content

#f021da

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

RGB
240, 33, 218
HSL
306°, 87%, 54%
CMYK
0, 86, 9, 6
Luminance
0.2467

Every format

HEX#f021da
RGBrgb(240, 33, 218)
HSLhsl(306, 87%, 54%)
CMYKcmyk(0%, 86%, 9%, 6%)
LABlab(56.8 87.7 -45.9)
LCHlch(56.8 99.0 332.4)
OKLCHoklch(0.665 0.284 333.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f021da on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#f021da on black: 5.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green12.9%
Blue85.5%

CMYK percentages

Cyan0.0%
Magenta86.3%
Yellow9.2%
Key (black)5.9%

Color previews

#f021da text on a black background

contrast 5.93:1

Card sample

#f021da text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f021da

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f021da in the Color Lab