Skip to content

#afb458

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

RGB
175, 180, 88
HSL
63°, 38%, 53%
CMYK
3, 0, 51, 29
Luminance
0.4246

Every format

HEX#afb458
RGBrgb(175, 180, 88)
HSLhsl(63, 38%, 53%)
CMYKcmyk(3%, 0%, 51%, 29%)
LABlab(71.2 -14.8 45.8)
LCHlch(71.2 48.1 108.0)
OKLCHoklch(0.747 0.116 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb458 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#afb458 on black: 9.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.6%
Blue34.5%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow51.1%
Key (black)29.4%

Color previews

#afb458 text on a black background

contrast 9.49:1

Card sample

#afb458 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 180, 88, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 180, 88, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb458;
background: linear-gradient(135deg, #afb458, #71B458);

Monochromatic scale

Palettes built from #afb458

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb458 in the Color Lab