Skip to content

#f021ba

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

RGB
240, 33, 186
HSL
316°, 87%, 54%
CMYK
0, 86, 23, 6
Luminance
0.2316

Every format

HEX#f021ba
RGBrgb(240, 33, 186)
HSLhsl(316, 87%, 54%)
CMYKcmyk(0%, 86%, 23%, 6%)
LABlab(55.2 83.6 -29.9)
LCHlch(55.2 88.8 340.3)
OKLCHoklch(0.650 0.265 342.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f021ba on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#f021ba on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green12.9%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta86.3%
Yellow22.5%
Key (black)5.9%

Color previews

#f021ba text on a black background

contrast 5.63:1

Card sample

#f021ba text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f021ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f021ba in the Color Lab