Skip to content

#afdf0d

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

RGB
175, 223, 13
HSL
74°, 89%, 46%
CMYK
22, 0, 94, 13
Luminance
0.6192

Every format

HEX#afdf0d
RGBrgb(175, 223, 13)
HSLhsl(74, 89%, 46%)
CMYKcmyk(22%, 0%, 94%, 13%)
LABlab(82.9 -39.0 80.2)
LCHlch(82.9 89.2 115.9)
OKLCHoklch(0.839 0.206 124.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf0d on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#afdf0d on black: 13.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue5.1%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow94.2%
Key (black)12.5%

Color previews

#afdf0d text on a black background

contrast 13.38:1

Card sample

#afdf0d text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf0d in the Color Lab