Skip to content

#ad9d1f

a dark, vivid yellow · cool · closest name: olive

RGB
173, 157, 31
HSL
53°, 70%, 40%
CMYK
0, 9, 82, 32
Luminance
0.3310

Every format

HEX#ad9d1f
RGBrgb(173, 157, 31)
HSLhsl(53, 70%, 40%)
CMYKcmyk(0%, 9%, 82%, 32%)
LABlab(64.2 -7.2 61.7)
LCHlch(64.2 62.1 96.6)
OKLCHoklch(0.689 0.136 101.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad9d1f on white: 2.76:1
AA ✗ fail · AA-large · AAA
Aa
#ad9d1f on black: 7.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green61.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta9.2%
Yellow82.1%
Key (black)32.2%

Color previews

#ad9d1f text on a black background

contrast 7.62:1

Card sample

#ad9d1f text on a white background

contrast 2.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(173, 157, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 157, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad9d1f;
background: linear-gradient(135deg, #ad9d1f, #5EAD1F);

Monochromatic scale

Palettes built from #ad9d1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad9d1f in the Color Lab