Skip to content

#afba82

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

RGB
175, 186, 130
HSL
72°, 29%, 62%
CMYK
6, 0, 30, 27
Luminance
0.4584

Every format

HEX#afba82
RGBrgb(175, 186, 130)
HSLhsl(72, 29%, 62%)
CMYKcmyk(6%, 0%, 30%, 27%)
LABlab(73.4 -13.1 27.2)
LCHlch(73.4 30.2 115.8)
OKLCHoklch(0.766 0.076 117.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba82 on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#afba82 on black: 10.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue51.0%

CMYK percentages

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

Color previews

#afba82 text on a black background

contrast 10.17:1

Card sample

#afba82 text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba82

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba82 in the Color Lab