Skip to content

#f2dcac

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

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

Every format

HEX#f2dcac
RGBrgb(242, 220, 172)
HSLhsl(41, 73%, 81%)
CMYKcmyk(0%, 9%, 29%, 5%)
LABlab(88.5 0.5 26.4)
LCHlch(88.5 26.4 88.9)
OKLCHoklch(0.901 0.067 86.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green86.3%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta9.1%
Yellow28.9%
Key (black)5.1%

Color previews

#f2dcac text on a black background

contrast 15.61:1

Card sample

#f2dcac text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcac in the Color Lab