Skip to content

#afb45d

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

RGB
175, 180, 93
HSL
63°, 37%, 54%
CMYK
3, 0, 48, 29
Luminance
0.4255

Every format

HEX#afb45d
RGBrgb(175, 180, 93)
HSLhsl(63, 37%, 54%)
CMYKcmyk(3%, 0%, 48%, 29%)
LABlab(71.3 -14.4 43.4)
LCHlch(71.3 45.8 108.3)
OKLCHoklch(0.747 0.111 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green70.6%
Blue36.5%

CMYK percentages

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

Color previews

#afb45d text on a black background

contrast 9.51:1

Card sample

#afb45d text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb45d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb45d in the Color Lab