Skip to content

#afbd2d

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

RGB
175, 189, 45
HSL
66°, 62%, 46%
CMYK
7, 0, 76, 26
Luminance
0.4570

Every format

HEX#afbd2d
RGBrgb(175, 189, 45)
HSLhsl(66, 62%, 46%)
CMYKcmyk(7%, 0%, 76%, 26%)
LABlab(73.3 -22.2 65.7)
LCHlch(73.3 69.3 108.7)
OKLCHoklch(0.763 0.159 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbd2d on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#afbd2d on black: 10.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green74.1%
Blue17.6%

CMYK percentages

Cyan7.4%
Magenta0.0%
Yellow76.2%
Key (black)25.9%

Color previews

#afbd2d text on a black background

contrast 10.14:1

Card sample

#afbd2d text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbd2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbd2d in the Color Lab