Skip to content

#affc0d

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

RGB
175, 252, 13
HSL
79°, 98%, 52%
CMYK
31, 0, 95, 1
Luminance
0.7876

Every format

HEX#affc0d
RGBrgb(175, 252, 13)
HSLhsl(79, 98%, 52%)
CMYKcmyk(31%, 0%, 95%, 1%)
LABlab(91.1 -51.4 86.7)
LCHlch(91.1 100.8 120.6)
OKLCHoklch(0.906 0.237 128.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#affc0d on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#affc0d on black: 16.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green98.8%
Blue5.1%

CMYK percentages

Cyan30.6%
Magenta0.0%
Yellow94.8%
Key (black)1.2%

Color previews

#affc0d text on a black background

contrast 16.75:1

Card sample

#affc0d text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #affc0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #affc0d in the Color Lab