Skip to content

#afb960

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

RGB
175, 185, 96
HSL
67°, 39%, 55%
CMYK
5, 0, 48, 28
Luminance
0.4466

Every format

HEX#afb960
RGBrgb(175, 185, 96)
HSLhsl(67, 39%, 55%)
CMYKcmyk(5%, 0%, 48%, 28%)
LABlab(72.7 -16.6 43.7)
LCHlch(72.7 46.7 110.9)
OKLCHoklch(0.759 0.114 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb960 on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#afb960 on black: 9.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.5%
Blue37.6%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow48.1%
Key (black)27.5%

Color previews

#afb960 text on a black background

contrast 9.93:1

Card sample

#afb960 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb960

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb960 in the Color Lab