Skip to content

#afb259

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

RGB
175, 178, 89
HSL
62°, 37%, 52%
CMYK
2, 0, 50, 30
Luminance
0.4168

Every format

HEX#afb259
RGBrgb(175, 178, 89)
HSLhsl(62, 37%, 52%)
CMYKcmyk(2%, 0%, 50%, 30%)
LABlab(70.7 -13.7 44.7)
LCHlch(70.7 46.7 107.1)
OKLCHoklch(0.742 0.113 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb259 on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#afb259 on black: 9.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue34.9%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow50.0%
Key (black)30.2%

Color previews

#afb259 text on a black background

contrast 9.34:1

Card sample

#afb259 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb259

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb259 in the Color Lab