Skip to content

#d2ac0e

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

RGB
210, 172, 14
HSL
48°, 88%, 44%
CMYK
0, 18, 93, 18
Luminance
0.4324

Every format

HEX#d2ac0e
RGBrgb(210, 172, 14)
HSLhsl(48, 88%, 44%)
CMYKcmyk(0%, 18%, 93%, 18%)
LABlab(71.7 1.0 72.8)
LCHlch(71.7 72.8 89.2)
OKLCHoklch(0.757 0.153 92.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ac0e on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#d2ac0e on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green67.5%
Blue5.5%

CMYK percentages

Cyan0.0%
Magenta18.1%
Yellow93.3%
Key (black)17.6%

Color previews

#d2ac0e text on a black background

contrast 9.65:1

Card sample

#d2ac0e text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 172, 14, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 172, 14, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2ac0e;
background: linear-gradient(135deg, #d2ac0e, #75D20E);

Monochromatic scale

Palettes built from #d2ac0e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ac0e in the Color Lab