Skip to content

#f07fdf

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

RGB
240, 127, 223
HSL
309°, 79%, 72%
CMYK
0, 47, 7, 6
Luminance
0.3903

Every format

HEX#f07fdf
RGBrgb(240, 127, 223)
HSLhsl(309, 79%, 72%)
CMYKcmyk(0%, 47%, 7%, 6%)
LABlab(68.8 55.8 -29.9)
LCHlch(68.8 63.4 331.8)
OKLCHoklch(0.754 0.179 333.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f07fdf on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#f07fdf on black: 8.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green49.8%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta47.1%
Yellow7.1%
Key (black)5.9%

Color previews

#f07fdf text on a black background

contrast 8.81:1

Card sample

#f07fdf text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f07fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f07fdf in the Color Lab