Skip to content

#afcc47

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

RGB
175, 204, 71
HSL
73°, 57%, 54%
CMYK
14, 0, 65, 20
Luminance
0.5275

Every format

HEX#afcc47
RGBrgb(175, 204, 71)
HSLhsl(73, 57%, 54%)
CMYKcmyk(14%, 0%, 65%, 20%)
LABlab(77.7 -28.0 60.6)
LCHlch(77.7 66.8 114.8)
OKLCHoklch(0.798 0.160 120.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc47 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#afcc47 on black: 11.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue27.8%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow65.2%
Key (black)20.0%

Color previews

#afcc47 text on a black background

contrast 11.55:1

Card sample

#afcc47 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afcc47

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc47 in the Color Lab