Skip to content

#d7ab2f

a balanced, vivid yellow · warm · closest name: orange

RGB
215, 171, 47
HSL
44°, 68%, 51%
CMYK
0, 21, 78, 16
Luminance
0.4378

Every format

HEX#d7ab2f
RGBrgb(215, 171, 47)
HSLhsl(44, 68%, 51%)
CMYKcmyk(0%, 21%, 78%, 16%)
LABlab(72.1 4.5 65.2)
LCHlch(72.1 65.3 86.1)
OKLCHoklch(0.761 0.142 87.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d7ab2f on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#d7ab2f on black: 9.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green67.1%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta20.5%
Yellow78.1%
Key (black)15.7%

Color previews

#d7ab2f text on a black background

contrast 9.76:1

Card sample

#d7ab2f text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 171, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 171, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7ab2f;
background: linear-gradient(135deg, #d7ab2f, #93D72F);

Monochromatic scale

Palettes built from #d7ab2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7ab2f in the Color Lab