Skip to content

#d8cfac

a light, soft yellow · cool · closest name: tan

RGB
216, 207, 172
HSL
48°, 36%, 76%
CMYK
0, 4, 20, 15
Luminance
0.6220

Every format

HEX#d8cfac
RGBrgb(216, 207, 172)
HSLhsl(48, 36%, 76%)
CMYKcmyk(0%, 4%, 20%, 15%)
LABlab(83.0 -2.5 18.6)
LCHlch(83.0 18.7 97.8)
OKLCHoklch(0.853 0.048 95.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8cfac on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#d8cfac on black: 13.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.7%
Green81.2%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta4.2%
Yellow20.4%
Key (black)15.3%

Color previews

#d8cfac text on a black background

contrast 13.44:1

Card sample

#d8cfac text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d8cfac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d8cfac in the Color Lab