Skip to content

#f287df

a light, electric magenta / pink · warm · closest name: violet

RGB
242, 135, 223
HSL
311°, 81%, 74%
CMYK
0, 44, 8, 5
Luminance
0.4153

Every format

HEX#f287df
RGBrgb(242, 135, 223)
HSLhsl(311, 81%, 74%)
CMYKcmyk(0%, 44%, 8%, 5%)
LABlab(70.5 52.5 -27.2)
LCHlch(70.5 59.1 332.6)
OKLCHoklch(0.767 0.168 334.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f287df on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#f287df on black: 9.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green52.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta44.2%
Yellow7.9%
Key (black)5.1%

Color previews

#f287df text on a black background

contrast 9.31:1

Card sample

#f287df text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 135, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 135, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f287df;
background: linear-gradient(135deg, #f287df, #F28797);

Monochromatic scale

Palettes built from #f287df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f287df in the Color Lab