Skip to content

#afbc56

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

RGB
175, 188, 86
HSL
68°, 43%, 54%
CMYK
7, 0, 54, 26
Luminance
0.4575

Every format

HEX#afbc56
RGBrgb(175, 188, 86)
HSLhsl(68, 43%, 54%)
CMYKcmyk(7%, 0%, 54%, 26%)
LABlab(73.4 -19.1 49.3)
LCHlch(73.4 52.9 111.1)
OKLCHoklch(0.764 0.128 115.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green73.7%
Blue33.7%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow54.3%
Key (black)26.3%

Color previews

#afbc56 text on a black background

contrast 10.15:1

Card sample

#afbc56 text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbc56 in the Color Lab