Skip to content

#f0afbc

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

RGB
240, 175, 188
HSL
348°, 68%, 81%
CMYK
0, 27, 22, 6
Luminance
0.5282

Every format

HEX#f0afbc
RGBrgb(240, 175, 188)
HSLhsl(348, 68%, 81%)
CMYKcmyk(0%, 27%, 22%, 6%)
LABlab(77.8 25.6 2.8)
LCHlch(77.8 25.7 6.2)
OKLCHoklch(0.818 0.078 5.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0afbc on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#f0afbc on black: 11.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue73.7%

CMYK percentages

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

Color previews

#f0afbc text on a black background

contrast 11.56:1

Card sample

#f0afbc text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afbc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afbc in the Color Lab