Skip to content

#f2ddb1

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

RGB
242, 221, 177
HSL
41°, 71%, 82%
CMYK
0, 9, 27, 5
Luminance
0.7376

Every format

HEX#f2ddb1
RGBrgb(242, 221, 177)
HSLhsl(41, 71%, 82%)
CMYKcmyk(0%, 9%, 27%, 5%)
LABlab(88.8 0.6 24.3)
LCHlch(88.8 24.3 88.5)
OKLCHoklch(0.904 0.062 85.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ddb1 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#f2ddb1 on black: 15.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green86.7%
Blue69.4%

CMYK percentages

Cyan0.0%
Magenta8.7%
Yellow26.9%
Key (black)5.1%

Color previews

#f2ddb1 text on a black background

contrast 15.75:1

Card sample

#f2ddb1 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ddb1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ddb1 in the Color Lab