Skip to content

#f2afba

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

RGB
242, 175, 186
HSL
350°, 72%, 82%
CMYK
0, 28, 23, 5
Luminance
0.5308

Every format

HEX#f2afba
RGBrgb(242, 175, 186)
HSLhsl(350, 72%, 82%)
CMYKcmyk(0%, 28%, 23%, 5%)
LABlab(77.9 26.0 4.1)
LCHlch(77.9 26.3 9.0)
OKLCHoklch(0.820 0.080 8.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta27.7%
Yellow23.1%
Key (black)5.1%

Color previews

#f2afba text on a black background

contrast 11.62:1

Card sample

#f2afba text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afba in the Color Lab