Skip to content

#afba68

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

RGB
175, 186, 104
HSL
68°, 37%, 57%
CMYK
6, 0, 44, 27
Luminance
0.4523

Every format

HEX#afba68
RGBrgb(175, 186, 104)
HSLhsl(68, 37%, 57%)
CMYKcmyk(6%, 0%, 44%, 27%)
LABlab(73.0 -16.3 40.1)
LCHlch(73.0 43.3 112.1)
OKLCHoklch(0.762 0.107 115.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba68 on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afba68 on black: 10.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue40.8%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow44.1%
Key (black)27.1%

Color previews

#afba68 text on a black background

contrast 10.05:1

Card sample

#afba68 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba68

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba68 in the Color Lab