Skip to content

#f27df0

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

RGB
242, 125, 240
HSL
301°, 82%, 72%
CMYK
0, 48, 1, 5
Luminance
0.3984

Every format

HEX#f27df0
RGBrgb(242, 125, 240)
HSLhsl(301, 82%, 72%)
CMYKcmyk(0%, 48%, 1%, 5%)
LABlab(69.3 60.2 -38.4)
LCHlch(69.3 71.4 327.5)
OKLCHoklch(0.761 0.198 327.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#f27df0 text on a black background

contrast 8.97:1

Card sample

#f27df0 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f27df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f27df0 in the Color Lab