Skip to content

#f27df5

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

RGB
242, 125, 245
HSL
299°, 86%, 73%
CMYK
1, 49, 0, 4
Luminance
0.4014

Every format

HEX#f27df5
RGBrgb(242, 125, 245)
HSLhsl(299, 86%, 73%)
CMYKcmyk(1%, 49%, 0%, 4%)
LABlab(69.6 61.1 -40.8)
LCHlch(69.6 73.5 326.3)
OKLCHoklch(0.763 0.203 326.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f27df5 on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#f27df5 on black: 9.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green49.0%
Blue96.1%

CMYK percentages

Cyan1.2%
Magenta49.0%
Yellow0.0%
Key (black)3.9%

Color previews

#f27df5 text on a black background

contrast 9.03:1

Card sample

#f27df5 text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f27df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f27df5 in the Color Lab