Skip to content

#ad8c21

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

RGB
173, 140, 33
HSL
46°, 68%, 40%
CMYK
0, 19, 81, 32
Luminance
0.2775

Every format

HEX#ad8c21
RGBrgb(173, 140, 33)
HSLhsl(46, 68%, 40%)
CMYKcmyk(0%, 19%, 81%, 32%)
LABlab(59.7 2.1 57.1)
LCHlch(59.7 57.1 87.9)
OKLCHoklch(0.653 0.123 90.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad8c21 on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#ad8c21 on black: 6.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green54.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta19.1%
Yellow80.9%
Key (black)32.2%

Color previews

#ad8c21 text on a black background

contrast 6.55:1

Card sample

#ad8c21 text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(173, 140, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 140, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad8c21;
background: linear-gradient(135deg, #ad8c21, #71AD21);

Monochromatic scale

Palettes built from #ad8c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad8c21 in the Color Lab