Skip to content

#ffaef8

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

RGB
255, 174, 248
HSL
305°, 100%, 84%
CMYK
0, 32, 3, 0
Luminance
0.5831

Every format

HEX#ffaef8
RGBrgb(255, 174, 248)
HSLhsl(305, 100%, 84%)
CMYKcmyk(0%, 32%, 3%, 0%)
LABlab(80.9 40.8 -24.8)
LCHlch(80.9 47.8 328.7)
OKLCHoklch(0.852 0.133 329.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffaef8 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#ffaef8 on black: 12.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.2%
Blue97.3%

CMYK percentages

Cyan0.0%
Magenta31.8%
Yellow2.7%
Key (black)0.0%

Color previews

#ffaef8 text on a black background

contrast 12.66:1

Card sample

#ffaef8 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaef8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaef8 in the Color Lab