Skip to content

#afdb1c

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

RGB
175, 219, 28
HSL
74°, 77%, 48%
CMYK
20, 0, 87, 14
Luminance
0.5986

Every format

HEX#afdb1c
RGBrgb(175, 219, 28)
HSLhsl(74, 77%, 48%)
CMYKcmyk(20%, 0%, 87%, 14%)
LABlab(81.8 -36.9 77.2)
LCHlch(81.8 85.6 115.5)
OKLCHoklch(0.830 0.199 123.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdb1c on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#afdb1c on black: 12.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.9%
Blue11.0%

CMYK percentages

Cyan20.1%
Magenta0.0%
Yellow87.2%
Key (black)14.1%

Color previews

#afdb1c text on a black background

contrast 12.97:1

Card sample

#afdb1c text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 219, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 219, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdb1c;
background: linear-gradient(135deg, #afdb1c, #30DB1C);

Monochromatic scale

Palettes built from #afdb1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdb1c in the Color Lab