#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 |
| RGB | rgb(216, 207, 172) |
| HSL | hsl(48, 36%, 76%) |
| CMYK | cmyk(0%, 4%, 20%, 15%) |
| LAB | lab(83.0 -2.5 18.6) |
| LCH | lch(83.0 18.7 97.8) |
| OKLCH | oklch(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);