Skip to content

#afad40

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

RGB
175, 173, 64
HSL
59°, 46%, 47%
CMYK
0, 1, 63, 31
Luminance
0.3937

Every format

HEX#afad40
RGBrgb(175, 173, 64)
HSLhsl(59, 46%, 47%)
CMYKcmyk(0%, 1%, 63%, 31%)
LABlab(69.0 -13.1 54.4)
LCHlch(69.0 55.9 103.6)
OKLCHoklch(0.728 0.130 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afad40 on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#afad40 on black: 8.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.8%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow63.4%
Key (black)31.4%

Color previews

#afad40 text on a black background

contrast 8.87:1

Card sample

#afad40 text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afad40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afad40 in the Color Lab