Skip to content

#afb764

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

RGB
175, 183, 100
HSL
66°, 37%, 56%
CMYK
4, 0, 45, 28
Luminance
0.4390

Every format

HEX#afb764
RGBrgb(175, 183, 100)
HSLhsl(66, 37%, 56%)
CMYKcmyk(4%, 0%, 45%, 28%)
LABlab(72.2 -15.2 41.1)
LCHlch(72.2 43.8 110.3)
OKLCHoklch(0.755 0.107 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan4.4%
Magenta0.0%
Yellow45.4%
Key (black)28.2%

Color previews

#afb764 text on a black background

contrast 9.78:1

Card sample

#afb764 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb764

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb764 in the Color Lab