Skip to content

#d1af3f

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

RGB
209, 175, 63
HSL
46°, 61%, 53%
CMYK
0, 16, 70, 18
Luminance
0.4457

Every format

HEX#d1af3f
RGBrgb(209, 175, 63)
HSLhsl(46, 61%, 53%)
CMYKcmyk(0%, 16%, 70%, 18%)
LABlab(72.6 0.5 59.5)
LCHlch(72.6 59.5 89.5)
OKLCHoklch(0.764 0.133 91.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d1af3f on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#d1af3f on black: 9.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green68.6%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta16.3%
Yellow69.9%
Key (black)18.0%

Color previews

#d1af3f text on a black background

contrast 9.91:1

Card sample

#d1af3f text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(209, 175, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(209, 175, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d1af3f;
background: linear-gradient(135deg, #d1af3f, #92D13F);

Monochromatic scale

Palettes built from #d1af3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1af3f in the Color Lab