Skip to content

#afad2d

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

RGB
175, 173, 45
HSL
59°, 59%, 43%
CMYK
0, 1, 74, 31
Luminance
0.3919

Every format

HEX#afad2d
RGBrgb(175, 173, 45)
HSLhsl(59, 59%, 43%)
CMYKcmyk(0%, 1%, 74%, 31%)
LABlab(68.9 -14.1 61.5)
LCHlch(68.9 63.1 102.9)
OKLCHoklch(0.727 0.143 108.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#afad2d text on a black background

contrast 8.84:1

Card sample

#afad2d text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afad2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afad2d in the Color Lab