Skip to content

#afcc22

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

RGB
175, 204, 34
HSL
70°, 71%, 47%
CMYK
14, 0, 83, 20
Luminance
0.5242

Every format

HEX#afcc22
RGBrgb(175, 204, 34)
HSLhsl(70, 71%, 47%)
CMYKcmyk(14%, 0%, 83%, 20%)
LABlab(77.5 -29.8 72.4)
LCHlch(77.5 78.3 112.4)
OKLCHoklch(0.796 0.180 119.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc22 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#afcc22 on black: 11.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue13.3%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow83.3%
Key (black)20.0%

Color previews

#afcc22 text on a black background

contrast 11.48:1

Card sample

#afcc22 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afcc22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc22 in the Color Lab