Skip to content

#afec0d

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

RGB
175, 236, 13
HSL
76°, 90%, 49%
CMYK
26, 0, 95, 8
Luminance
0.6913

Every format

HEX#afec0d
RGBrgb(175, 236, 13)
HSLhsl(76, 90%, 49%)
CMYKcmyk(26%, 0%, 95%, 8%)
LABlab(86.6 -44.6 83.1)
LCHlch(86.6 94.3 118.2)
OKLCHoklch(0.869 0.220 126.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afec0d on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#afec0d on black: 14.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.5%
Blue5.1%

CMYK percentages

Cyan25.8%
Magenta0.0%
Yellow94.5%
Key (black)7.5%

Color previews

#afec0d text on a black background

contrast 14.83:1

Card sample

#afec0d text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afec0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afec0d in the Color Lab