Skip to content

#f0af9b

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

RGB
240, 175, 155
HSL
14°, 74%, 78%
CMYK
0, 27, 35, 6
Luminance
0.5155

Every format

HEX#f0af9b
RGBrgb(240, 175, 155)
HSLhsl(14, 74%, 78%)
CMYKcmyk(0%, 27%, 35%, 6%)
LABlab(77.0 21.2 19.6)
LCHlch(77.0 28.9 42.8)
OKLCHoklch(0.810 0.082 37.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0af9b on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#f0af9b on black: 11.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue60.8%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow35.4%
Key (black)5.9%

Color previews

#f0af9b text on a black background

contrast 11.31:1

Card sample

#f0af9b text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0af9b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0af9b in the Color Lab