Skip to content

#afd672

a balanced, vivid green · cool · closest name: khaki

RGB
175, 214, 114
HSL
83°, 55%, 64%
CMYK
18, 0, 47, 16
Luminance
0.5842

Every format

HEX#afd672
RGBrgb(175, 214, 114)
HSLhsl(83, 55%, 64%)
CMYKcmyk(18%, 0%, 47%, 16%)
LABlab(81.0 -29.0 45.0)
LCHlch(81.0 53.5 122.8)
OKLCHoklch(0.826 0.135 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd672 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#afd672 on black: 12.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green83.9%
Blue44.7%

CMYK percentages

Cyan18.2%
Magenta0.0%
Yellow46.7%
Key (black)16.1%

Color previews

#afd672 text on a black background

contrast 12.68:1

Card sample

#afd672 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 214, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 214, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd672;
background: linear-gradient(135deg, #afd672, #72D678);

Monochromatic scale

Palettes built from #afd672

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd672 in the Color Lab