Skip to content

#f27df2

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

RGB
242, 125, 242
HSL
300°, 82%, 72%
CMYK
0, 48, 0, 5
Luminance
0.3996

Every format

HEX#f27df2
RGBrgb(242, 125, 242)
HSLhsl(300, 82%, 72%)
CMYKcmyk(0%, 48%, 0%, 5%)
LABlab(69.4 60.6 -39.4)
LCHlch(69.4 72.3 327.0)
OKLCHoklch(0.762 0.200 327.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f27df2 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#f27df2 on black: 8.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green49.0%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#f27df2 text on a black background

contrast 8.99:1

Card sample

#f27df2 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f27df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f27df2 in the Color Lab