Skip to content

#afb765

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

RGB
175, 183, 101
HSL
66°, 36%, 56%
CMYK
4, 0, 45, 28
Luminance
0.4392

Every format

HEX#afb765
RGBrgb(175, 183, 101)
HSLhsl(66, 36%, 56%)
CMYKcmyk(4%, 0%, 45%, 28%)
LABlab(72.2 -15.1 40.6)
LCHlch(72.2 43.3 110.4)
OKLCHoklch(0.755 0.106 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb765 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#afb765 on black: 9.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.8%
Blue39.6%

CMYK percentages

Cyan4.4%
Magenta0.0%
Yellow44.8%
Key (black)28.2%

Color previews

#afb765 text on a black background

contrast 9.78:1

Card sample

#afb765 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb765

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb765 in the Color Lab