Skip to content

#f0afac

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

RGB
240, 175, 172
HSL
3°, 69%, 81%
CMYK
0, 27, 28, 6
Luminance
0.5216

Every format

HEX#f0afac
RGBrgb(240, 175, 172)
HSLhsl(3, 69%, 81%)
CMYKcmyk(0%, 27%, 28%, 6%)
LABlab(77.4 23.3 10.9)
LCHlch(77.4 25.8 25.1)
OKLCHoklch(0.814 0.077 21.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0afac on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#f0afac on black: 11.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow28.3%
Key (black)5.9%

Color previews

#f0afac text on a black background

contrast 11.43:1

Card sample

#f0afac text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0afac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0afac in the Color Lab