Skip to content

#afb65c

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

RGB
175, 182, 92
HSL
65°, 38%, 54%
CMYK
4, 0, 50, 29
Luminance
0.4334

Every format

HEX#afb65c
RGBrgb(175, 182, 92)
HSLhsl(65, 38%, 54%)
CMYKcmyk(4%, 0%, 50%, 29%)
LABlab(71.8 -15.5 44.6)
LCHlch(71.8 47.2 109.2)
OKLCHoklch(0.751 0.115 112.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb65c on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#afb65c on black: 9.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.4%
Blue36.1%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow49.5%
Key (black)28.6%

Color previews

#afb65c text on a black background

contrast 9.67:1

Card sample

#afb65c text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb65c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb65c in the Color Lab