Skip to content

#afdf0e

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

RGB
175, 223, 14
HSL
74°, 88%, 47%
CMYK
22, 0, 94, 13
Luminance
0.6192

Every format

HEX#afdf0e
RGBrgb(175, 223, 14)
HSLhsl(74, 88%, 47%)
CMYKcmyk(22%, 0%, 94%, 13%)
LABlab(82.9 -39.0 80.1)
LCHlch(82.9 89.1 115.9)
OKLCHoklch(0.839 0.206 124.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow93.7%
Key (black)12.5%

Color previews

#afdf0e text on a black background

contrast 13.38:1

Card sample

#afdf0e text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf0e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf0e in the Color Lab