Skip to content

#f2daaa

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

RGB
242, 218, 170
HSL
40°, 74%, 81%
CMYK
0, 10, 30, 5
Luminance
0.7192

Every format

HEX#f2daaa
RGBrgb(242, 218, 170)
HSLhsl(40, 74%, 81%)
CMYKcmyk(0%, 10%, 30%, 5%)
LABlab(87.9 1.3 26.7)
LCHlch(87.9 26.7 87.3)
OKLCHoklch(0.896 0.068 84.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2daaa on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#f2daaa on black: 15.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green85.5%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow29.8%
Key (black)5.1%

Color previews

#f2daaa text on a black background

contrast 15.38:1

Card sample

#f2daaa text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2daaa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2daaa in the Color Lab