Skip to content

#afdf0f

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

RGB
175, 223, 15
HSL
74°, 87%, 47%
CMYK
22, 0, 93, 13
Luminance
0.6192

Every format

HEX#afdf0f
RGBrgb(175, 223, 15)
HSLhsl(74, 87%, 47%)
CMYKcmyk(22%, 0%, 93%, 13%)
LABlab(82.9 -38.9 80.0)
LCHlch(82.9 89.0 116.0)
OKLCHoklch(0.839 0.206 124.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#afdf0f text on a black background

contrast 13.38:1

Card sample

#afdf0f text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf0f in the Color Lab