Skip to content

#afb968

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

RGB
175, 185, 104
HSL
67°, 37%, 57%
CMYK
5, 0, 44, 28
Luminance
0.4481

Every format

HEX#afb968
RGBrgb(175, 185, 104)
HSLhsl(67, 37%, 57%)
CMYKcmyk(5%, 0%, 44%, 28%)
LABlab(72.8 -15.8 39.8)
LCHlch(72.8 42.8 111.7)
OKLCHoklch(0.760 0.106 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green72.5%
Blue40.8%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow43.8%
Key (black)27.5%

Color previews

#afb968 text on a black background

contrast 9.96:1

Card sample

#afb968 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb968

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb968 in the Color Lab