Skip to content

#afb45c

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

RGB
175, 180, 92
HSL
63°, 37%, 53%
CMYK
3, 0, 49, 29
Luminance
0.4253

Every format

HEX#afb45c
RGBrgb(175, 180, 92)
HSLhsl(63, 37%, 53%)
CMYKcmyk(3%, 0%, 49%, 29%)
LABlab(71.2 -14.5 43.9)
LCHlch(71.2 46.2 108.2)
OKLCHoklch(0.747 0.112 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb45c on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#afb45c on black: 9.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.6%
Blue36.1%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow48.9%
Key (black)29.4%

Color previews

#afb45c text on a black background

contrast 9.51:1

Card sample

#afb45c text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 180, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 180, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb45c;
background: linear-gradient(135deg, #afb45c, #74B45C);

Monochromatic scale

Palettes built from #afb45c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb45c in the Color Lab