Skip to content

#afba47

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

RGB
175, 186, 71
HSL
66°, 46%, 50%
CMYK
6, 0, 62, 27
Luminance
0.4469

Every format

HEX#afba47
RGBrgb(175, 186, 71)
HSLhsl(66, 46%, 50%)
CMYKcmyk(6%, 0%, 62%, 27%)
LABlab(72.7 -19.3 55.3)
LCHlch(72.7 58.5 109.2)
OKLCHoklch(0.758 0.139 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba47 on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#afba47 on black: 9.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue27.8%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow61.8%
Key (black)27.1%

Color previews

#afba47 text on a black background

contrast 9.94:1

Card sample

#afba47 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 186, 71, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 71, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba47;
background: linear-gradient(135deg, #afba47, #62BA47);

Monochromatic scale

Palettes built from #afba47

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba47 in the Color Lab