Skip to content

#afdf40

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

RGB
175, 223, 64
HSL
78°, 71%, 56%
CMYK
22, 0, 71, 13
Luminance
0.6226

Every format

HEX#afdf40
RGBrgb(175, 223, 64)
HSLhsl(78, 71%, 56%)
CMYKcmyk(22%, 0%, 71%, 13%)
LABlab(83.0 -37.3 68.7)
LCHlch(83.0 78.1 118.5)
OKLCHoklch(0.841 0.188 125.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf40 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf40 on black: 13.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue25.1%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow71.3%
Key (black)12.5%

Color previews

#afdf40 text on a black background

contrast 13.45:1

Card sample

#afdf40 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 223, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf40;
background: linear-gradient(135deg, #afdf40, #45DF40);

Monochromatic scale

Palettes built from #afdf40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf40 in the Color Lab