Skip to content

#ffafb5

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

RGB
255, 175, 181
HSL
356°, 100%, 84%
CMYK
0, 31, 29, 0
Luminance
0.5526

Every format

HEX#ffafb5
RGBrgb(255, 175, 181)
HSLhsl(356, 100%, 84%)
CMYKcmyk(0%, 31%, 29%, 0%)
LABlab(79.2 30.0 8.8)
LCHlch(79.2 31.3 16.4)
OKLCHoklch(0.832 0.094 14.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffafb5 on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#ffafb5 on black: 12.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.6%
Blue71.0%

CMYK percentages

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

Color previews

#ffafb5 text on a black background

contrast 12.05:1

Card sample

#ffafb5 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffafb5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffafb5 in the Color Lab