Skip to content

#d2af2f

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

RGB
210, 175, 47
HSL
47°, 64%, 50%
CMYK
0, 17, 78, 18
Luminance
0.4457

Every format

HEX#d2af2f
RGBrgb(210, 175, 47)
HSLhsl(47, 64%, 50%)
CMYKcmyk(0%, 17%, 78%, 18%)
LABlab(72.6 0.2 65.5)
LCHlch(72.6 65.5 89.8)
OKLCHoklch(0.764 0.143 92.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow77.6%
Key (black)17.6%

Color previews

#d2af2f text on a black background

contrast 9.91:1

Card sample

#d2af2f text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 175, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 175, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2af2f;
background: linear-gradient(135deg, #d2af2f, #88D22F);

Monochromatic scale

Palettes built from #d2af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af2f in the Color Lab