Skip to content

#afb04d

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

RGB
175, 176, 77
HSL
61°, 39%, 50%
CMYK
1, 0, 56, 31
Luminance
0.4070

Every format

HEX#afb04d
RGBrgb(175, 176, 77)
HSLhsl(61, 39%, 50%)
CMYKcmyk(1%, 0%, 56%, 31%)
LABlab(70.0 -13.7 49.6)
LCHlch(70.0 51.5 105.5)
OKLCHoklch(0.736 0.122 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb04d on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#afb04d on black: 9.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.0%
Blue30.2%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow56.2%
Key (black)31.0%

Color previews

#afb04d text on a black background

contrast 9.14:1

Card sample

#afb04d text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 176, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 176, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb04d;
background: linear-gradient(135deg, #afb04d, #6DB04D);

Monochromatic scale

Palettes built from #afb04d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb04d in the Color Lab