Skip to content

#f226df

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

RGB
242, 38, 223
HSL
306°, 89%, 55%
CMYK
0, 84, 8, 5
Luminance
0.2559

Every format

HEX#f226df
RGBrgb(242, 38, 223)
HSLhsl(306, 89%, 55%)
CMYKcmyk(0%, 84%, 8%, 5%)
LABlab(57.6 87.8 -47.3)
LCHlch(57.6 99.8 331.7)
OKLCHoklch(0.673 0.285 332.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f226df on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#f226df on black: 6.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green14.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta84.3%
Yellow7.9%
Key (black)5.1%

Color previews

#f226df text on a black background

contrast 6.12:1

Card sample

#f226df text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f226df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f226df in the Color Lab