Skip to content

#f2affc

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

RGB
242, 175, 252
HSL
292°, 93%, 84%
CMYK
4, 31, 0, 1
Luminance
0.5657

Every format

HEX#f2affc
RGBrgb(242, 175, 252)
HSLhsl(292, 93%, 84%)
CMYKcmyk(4%, 31%, 0%, 1%)
LABlab(79.9 37.0 -28.6)
LCHlch(79.9 46.7 322.3)
OKLCHoklch(0.842 0.127 322.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2affc on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#f2affc on black: 12.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green68.6%
Blue98.8%

CMYK percentages

Cyan4.0%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#f2affc text on a black background

contrast 12.31:1

Card sample

#f2affc text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2affc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2affc in the Color Lab