Skip to content

#ffafb2

a light, electric red · warm · closest name: pink

RGB
255, 175, 178
HSL
358°, 100%, 84%
CMYK
0, 31, 30, 0
Luminance
0.5513

Every format

HEX#ffafb2
RGBrgb(255, 175, 178)
HSLhsl(358, 100%, 84%)
CMYKcmyk(0%, 31%, 30%, 0%)
LABlab(79.1 29.6 10.4)
LCHlch(79.1 31.4 19.3)
OKLCHoklch(0.831 0.094 16.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffafb2 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#ffafb2 on black: 12.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.6%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow30.2%
Key (black)0.0%

Color previews

#ffafb2 text on a black background

contrast 12.03:1

Card sample

#ffafb2 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffafb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffafb2 in the Color Lab