Skip to content

#afbc2d

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

RGB
175, 188, 45
HSL
66°, 61%, 46%
CMYK
7, 0, 76, 26
Luminance
0.4527

Every format

HEX#afbc2d
RGBrgb(175, 188, 45)
HSLhsl(66, 61%, 46%)
CMYKcmyk(7%, 0%, 76%, 26%)
LABlab(73.1 -21.7 65.4)
LCHlch(73.1 68.9 108.3)
OKLCHoklch(0.760 0.158 114.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbc2d on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afbc2d on black: 10.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green73.7%
Blue17.6%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow76.1%
Key (black)26.3%

Color previews

#afbc2d text on a black background

contrast 10.05:1

Card sample

#afbc2d text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbc2d in the Color Lab