Skip to content

#afeb4d

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

RGB
175, 235, 77
HSL
83°, 80%, 61%
CMYK
26, 0, 67, 8
Luminance
0.6907

Every format

HEX#afeb4d
RGBrgb(175, 235, 77)
HSLhsl(83, 80%, 61%)
CMYKcmyk(26%, 0%, 67%, 8%)
LABlab(86.5 -41.8 67.5)
LCHlch(86.5 79.4 121.8)
OKLCHoklch(0.870 0.194 127.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green92.2%
Blue30.2%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow67.2%
Key (black)7.8%

Color previews

#afeb4d text on a black background

contrast 14.81:1

Card sample

#afeb4d text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 235, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 235, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afeb4d;
background: linear-gradient(135deg, #afeb4d, #4DEB54);

Monochromatic scale

Palettes built from #afeb4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb4d in the Color Lab