Skip to content

#d2af26

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

RGB
210, 175, 38
HSL
48°, 69%, 49%
CMYK
0, 17, 82, 18
Luminance
0.4450

Every format

HEX#d2af26
RGBrgb(210, 175, 38)
HSLhsl(48, 69%, 49%)
CMYKcmyk(0%, 17%, 82%, 18%)
LABlab(72.6 -0.1 68.3)
LCHlch(72.6 68.3 90.1)
OKLCHoklch(0.763 0.147 93.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue14.9%

CMYK percentages

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

Color previews

#d2af26 text on a black background

contrast 9.90:1

Card sample

#d2af26 text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2af26

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af26 in the Color Lab