Skip to content

#f2afb8

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

RGB
242, 175, 184
HSL
352°, 72%, 82%
CMYK
0, 28, 24, 5
Luminance
0.5300

Every format

HEX#f2afb8
RGBrgb(242, 175, 184)
HSLhsl(352, 72%, 82%)
CMYKcmyk(0%, 28%, 24%, 5%)
LABlab(77.9 25.7 5.2)
LCHlch(77.9 26.2 11.3)
OKLCHoklch(0.819 0.079 10.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2afb8 on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#f2afb8 on black: 11.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green68.6%
Blue72.2%

CMYK percentages

Cyan0.0%
Magenta27.7%
Yellow24.0%
Key (black)5.1%

Color previews

#f2afb8 text on a black background

contrast 11.60:1

Card sample

#f2afb8 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afb8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afb8 in the Color Lab