Skip to content

#d2af0f

a dark, electric yellow · cool · closest name: gold

RGB
210, 175, 15
HSL
49°, 87%, 44%
CMYK
0, 17, 93, 18
Luminance
0.4440

Every format

HEX#d2af0f
RGBrgb(210, 175, 15)
HSLhsl(49, 87%, 44%)
CMYKcmyk(0%, 17%, 93%, 18%)
LABlab(72.5 -0.6 73.2)
LCHlch(72.5 73.2 90.5)
OKLCHoklch(0.763 0.154 94.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2af0f on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#d2af0f on black: 9.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green68.6%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow92.9%
Key (black)17.6%

Color previews

#d2af0f text on a black background

contrast 9.88:1

Card sample

#d2af0f text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2af0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af0f in the Color Lab