Skip to content

#afb82f

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

RGB
175, 184, 47
HSL
64°, 59%, 45%
CMYK
5, 0, 75, 28
Luminance
0.4360

Every format

HEX#afb82f
RGBrgb(175, 184, 47)
HSLhsl(64, 59%, 45%)
CMYKcmyk(5%, 0%, 75%, 28%)
LABlab(72.0 -19.6 63.8)
LCHlch(72.0 66.7 107.1)
OKLCHoklch(0.752 0.153 113.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb82f on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#afb82f on black: 9.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.2%
Blue18.4%

CMYK percentages

Cyan4.9%
Magenta0.0%
Yellow74.5%
Key (black)27.8%

Color previews

#afb82f text on a black background

contrast 9.72:1

Card sample

#afb82f text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 184, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 184, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb82f;
background: linear-gradient(135deg, #afb82f, #54B82F);

Monochromatic scale

Palettes built from #afb82f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb82f in the Color Lab