Skip to content

#f2ddaf

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

RGB
242, 221, 175
HSL
41°, 72%, 82%
CMYK
0, 9, 28, 5
Luminance
0.7369

Every format

HEX#f2ddaf
RGBrgb(242, 221, 175)
HSLhsl(41, 72%, 82%)
CMYKcmyk(0%, 9%, 28%, 5%)
LABlab(88.8 0.4 25.3)
LCHlch(88.8 25.3 89.1)
OKLCHoklch(0.903 0.064 86.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green86.7%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta8.7%
Yellow27.7%
Key (black)5.1%

Color previews

#f2ddaf text on a black background

contrast 15.74:1

Card sample

#f2ddaf text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ddaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ddaf in the Color Lab