Skip to content

#f2dfad

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

RGB
242, 223, 173
HSL
44°, 73%, 81%
CMYK
0, 8, 29, 5
Luminance
0.7467

Every format

HEX#f2dfad
RGBrgb(242, 223, 173)
HSLhsl(44, 73%, 81%)
CMYKcmyk(0%, 8%, 29%, 5%)
LABlab(89.2 -0.9 26.9)
LCHlch(89.2 26.9 91.9)
OKLCHoklch(0.907 0.068 89.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dfad on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#f2dfad on black: 15.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.5%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow28.5%
Key (black)5.1%

Color previews

#f2dfad text on a black background

contrast 15.93:1

Card sample

#f2dfad text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dfad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dfad in the Color Lab