Skip to content

#f7dfab

a light, electric yellow · warm · closest name: tan

RGB
247, 223, 171
HSL
41°, 83%, 82%
CMYK
0, 10, 31, 3
Luminance
0.7549

Every format

HEX#f7dfab
RGBrgb(247, 223, 171)
HSLhsl(41, 83%, 82%)
CMYKcmyk(0%, 10%, 31%, 3%)
LABlab(89.6 0.7 28.5)
LCHlch(89.6 28.6 88.5)
OKLCHoklch(0.911 0.072 86.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7dfab on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f7dfab on black: 16.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green87.5%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta9.7%
Yellow30.8%
Key (black)3.1%

Color previews

#f7dfab text on a black background

contrast 16.10:1

Card sample

#f7dfab text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(247, 223, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 223, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7dfab;
background: linear-gradient(135deg, #f7dfab, #DCF7AB);

Monochromatic scale

Palettes built from #f7dfab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7dfab in the Color Lab