Skip to content

#af9c21

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

RGB
175, 156, 33
HSL
52°, 68%, 41%
CMYK
0, 11, 81, 31
Luminance
0.3300

Every format

HEX#af9c21
RGBrgb(175, 156, 33)
HSLhsl(52, 68%, 41%)
CMYKcmyk(0%, 11%, 81%, 31%)
LABlab(64.2 -5.7 61.1)
LCHlch(64.2 61.4 95.3)
OKLCHoklch(0.689 0.134 99.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green61.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow81.1%
Key (black)31.4%

Color previews

#af9c21 text on a black background

contrast 7.60:1

Card sample

#af9c21 text on a white background

contrast 2.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 156, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 156, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9c21;
background: linear-gradient(135deg, #af9c21, #63AF21);

Monochromatic scale

Palettes built from #af9c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9c21 in the Color Lab