Skip to content

#f2dbab

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

RGB
242, 219, 171
HSL
41°, 73%, 81%
CMYK
0, 10, 29, 5
Luminance
0.7248

Every format

HEX#f2dbab
RGBrgb(242, 219, 171)
HSLhsl(41, 73%, 81%)
CMYKcmyk(0%, 10%, 29%, 5%)
LABlab(88.2 0.9 26.5)
LCHlch(88.2 26.6 88.1)
OKLCHoklch(0.899 0.067 85.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dbab on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#f2dbab on black: 15.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green85.9%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta9.5%
Yellow29.3%
Key (black)5.1%

Color previews

#f2dbab text on a black background

contrast 15.50:1

Card sample

#f2dbab text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dbab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dbab in the Color Lab