Skip to content

#f2afbf

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

RGB
242, 175, 191
HSL
346°, 72%, 82%
CMYK
0, 28, 21, 5
Luminance
0.5330

Every format

HEX#f2afbf
RGBrgb(242, 175, 191)
HSLhsl(346, 72%, 82%)
CMYKcmyk(0%, 28%, 21%, 5%)
LABlab(78.0 26.7 1.6)
LCHlch(78.0 26.8 3.4)
OKLCHoklch(0.821 0.081 3.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2afbf on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#f2afbf on black: 11.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green68.6%
Blue74.9%

CMYK percentages

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

Color previews

#f2afbf text on a black background

contrast 11.66:1

Card sample

#f2afbf text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afbf in the Color Lab