Skip to content

#d4af4f

a balanced, vivid yellow · warm · closest name: khaki

RGB
212, 175, 79
HSL
43°, 61%, 57%
CMYK
0, 18, 63, 17
Luminance
0.4522

Every format

HEX#d4af4f
RGBrgb(212, 175, 79)
HSLhsl(43, 61%, 57%)
CMYKcmyk(0%, 18%, 63%, 17%)
LABlab(73.0 2.7 53.0)
LCHlch(73.0 53.1 87.1)
OKLCHoklch(0.769 0.122 88.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4af4f on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#d4af4f on black: 10.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green68.6%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta17.5%
Yellow62.7%
Key (black)16.9%

Color previews

#d4af4f text on a black background

contrast 10.04:1

Card sample

#d4af4f text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 175, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 175, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4af4f;
background: linear-gradient(135deg, #d4af4f, #A0D44F);

Monochromatic scale

Palettes built from #d4af4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4af4f in the Color Lab