Skip to content

#afbb49

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

RGB
175, 187, 73
HSL
66°, 46%, 51%
CMYK
6, 0, 61, 27
Luminance
0.4514

Every format

HEX#afbb49
RGBrgb(175, 187, 73)
HSLhsl(66, 46%, 51%)
CMYKcmyk(6%, 0%, 61%, 27%)
LABlab(73.0 -19.6 54.7)
LCHlch(73.0 58.1 109.7)
OKLCHoklch(0.760 0.138 114.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green73.3%
Blue28.6%

CMYK percentages

Cyan6.4%
Magenta0.0%
Yellow61.0%
Key (black)26.7%

Color previews

#afbb49 text on a black background

contrast 10.03:1

Card sample

#afbb49 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 187, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 187, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbb49;
background: linear-gradient(135deg, #afbb49, #63BB49);

Monochromatic scale

Palettes built from #afbb49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbb49 in the Color Lab