Skip to content

#f2dcab

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

RGB
242, 220, 171
HSL
41°, 73%, 81%
CMYK
0, 9, 29, 5
Luminance
0.7300

Every format

HEX#f2dcab
RGBrgb(242, 220, 171)
HSLhsl(41, 73%, 81%)
CMYKcmyk(0%, 9%, 29%, 5%)
LABlab(88.5 0.4 26.9)
LCHlch(88.5 26.9 89.2)
OKLCHoklch(0.901 0.068 86.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dcab on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#f2dcab on black: 15.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green86.3%
Blue67.1%

CMYK percentages

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

Color previews

#f2dcab text on a black background

contrast 15.60:1

Card sample

#f2dcab text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcab in the Color Lab