Skip to content

#afd92f

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

RGB
175, 217, 47
HSL
75°, 69%, 52%
CMYK
19, 0, 78, 15
Luminance
0.5894

Every format

HEX#afd92f
RGBrgb(175, 217, 47)
HSLhsl(75, 69%, 52%)
CMYKcmyk(19%, 0%, 78%, 15%)
LABlab(81.3 -35.4 72.3)
LCHlch(81.3 80.5 116.1)
OKLCHoklch(0.826 0.190 123.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd92f on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#afd92f on black: 12.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue18.4%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow78.3%
Key (black)14.9%

Color previews

#afd92f text on a black background

contrast 12.79:1

Card sample

#afd92f text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd92f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd92f in the Color Lab