Skip to content

#ffafe4

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

RGB
255, 175, 228
HSL
320°, 100%, 84%
CMYK
0, 31, 11, 0
Luminance
0.5752

Every format

HEX#ffafe4
RGBrgb(255, 175, 228)
HSLhsl(320, 100%, 84%)
CMYKcmyk(0%, 31%, 11%, 0%)
LABlab(80.5 36.9 -14.7)
LCHlch(80.5 39.8 338.3)
OKLCHoklch(0.846 0.114 340.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue89.4%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow10.6%
Key (black)0.0%

Color previews

#ffafe4 text on a black background

contrast 12.50:1

Card sample

#ffafe4 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffafe4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffafe4 in the Color Lab