Skip to content

#ffafe2

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

RGB
255, 175, 226
HSL
322°, 100%, 84%
CMYK
0, 31, 11, 0
Luminance
0.5741

Every format

HEX#ffafe2
RGBrgb(255, 175, 226)
HSLhsl(322, 100%, 84%)
CMYKcmyk(0%, 31%, 11%, 0%)
LABlab(80.4 36.6 -13.7)
LCHlch(80.4 39.1 339.4)
OKLCHoklch(0.846 0.113 341.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffafe2 on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#ffafe2 on black: 12.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.6%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow11.4%
Key (black)0.0%

Color previews

#ffafe2 text on a black background

contrast 12.48:1

Card sample

#ffafe2 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffafe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffafe2 in the Color Lab