Skip to content

#f24fdf

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

RGB
242, 79, 223
HSL
307°, 86%, 63%
CMYK
0, 67, 8, 5
Luminance
0.2980

Every format

HEX#f24fdf
RGBrgb(242, 79, 223)
HSLhsl(307, 86%, 63%)
CMYKcmyk(0%, 67%, 8%, 5%)
LABlab(61.5 76.9 -41.3)
LCHlch(61.5 87.3 331.8)
OKLCHoklch(0.701 0.249 333.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f24fdf on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#f24fdf on black: 6.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green31.0%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta67.4%
Yellow7.9%
Key (black)5.1%

Color previews

#f24fdf text on a black background

contrast 6.96:1

Card sample

#f24fdf text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f24fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f24fdf in the Color Lab