Skip to content

#afad28

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

RGB
175, 173, 40
HSL
59°, 63%, 42%
CMYK
0, 1, 77, 31
Luminance
0.3915

Every format

HEX#afad28
RGBrgb(175, 173, 40)
HSLhsl(59, 63%, 42%)
CMYKcmyk(0%, 1%, 77%, 31%)
LABlab(68.9 -14.3 63.2)
LCHlch(68.9 64.8 102.8)
OKLCHoklch(0.727 0.145 108.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.8%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow77.1%
Key (black)31.4%

Color previews

#afad28 text on a black background

contrast 8.83:1

Card sample

#afad28 text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afad28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afad28 in the Color Lab