Skip to content

#afad2c

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

RGB
175, 173, 44
HSL
59°, 60%, 43%
CMYK
0, 1, 75, 31
Luminance
0.3918

Every format

HEX#afad2c
RGBrgb(175, 173, 44)
HSLhsl(59, 60%, 43%)
CMYKcmyk(0%, 1%, 75%, 31%)
LABlab(68.9 -14.2 61.9)
LCHlch(68.9 63.5 102.9)
OKLCHoklch(0.727 0.143 108.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afad2c on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#afad2c on black: 8.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.8%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow74.9%
Key (black)31.4%

Color previews

#afad2c text on a black background

contrast 8.84:1

Card sample

#afad2c text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afad2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afad2c in the Color Lab