Skip to content

#afab56

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

RGB
175, 171, 86
HSL
57°, 36%, 51%
CMYK
0, 2, 51, 31
Luminance
0.3891

Every format

HEX#afab56
RGBrgb(175, 171, 86)
HSLhsl(57, 36%, 51%)
CMYKcmyk(0%, 2%, 51%, 31%)
LABlab(68.7 -10.4 43.8)
LCHlch(68.7 45.0 103.3)
OKLCHoklch(0.727 0.108 106.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab56 on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#afab56 on black: 8.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow50.9%
Key (black)31.4%

Color previews

#afab56 text on a black background

contrast 8.78:1

Card sample

#afab56 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 171, 86, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 86, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab56;
background: linear-gradient(135deg, #afab56, #78AF56);

Monochromatic scale

Palettes built from #afab56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab56 in the Color Lab