Skip to content

#afba98

a light, soft green · cool · closest name: tan

RGB
175, 186, 152
HSL
79°, 20%, 66%
CMYK
6, 0, 18, 27
Luminance
0.4650

Every format

HEX#afba98
RGBrgb(175, 186, 152)
HSLhsl(79, 20%, 66%)
CMYKcmyk(6%, 0%, 18%, 27%)
LABlab(73.9 -9.9 16.0)
LCHlch(73.9 18.8 121.7)
OKLCHoklch(0.771 0.049 122.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba98 on white: 2.04:1
AA ✗ fail · AA-large · AAA
Aa
#afba98 on black: 10.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue59.6%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow18.3%
Key (black)27.1%

Color previews

#afba98 text on a black background

contrast 10.30:1

Card sample

#afba98 text on a white background

contrast 2.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba98 in the Color Lab