Skip to content

#afd259

a balanced, vivid green · cool · closest name: khaki

RGB
175, 210, 89
HSL
77°, 57%, 59%
CMYK
17, 0, 58, 18
Luminance
0.5593

Every format

HEX#afd259
RGBrgb(175, 210, 89)
HSLhsl(77, 57%, 59%)
CMYKcmyk(17%, 0%, 58%, 18%)
LABlab(79.6 -29.5 55.0)
LCHlch(79.6 62.4 118.2)
OKLCHoklch(0.814 0.153 123.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd259 on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#afd259 on black: 12.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.4%
Blue34.9%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow57.6%
Key (black)17.6%

Color previews

#afd259 text on a black background

contrast 12.19:1

Card sample

#afd259 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 210, 89, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 89, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd259;
background: linear-gradient(135deg, #afd259, #5ED259);

Monochromatic scale

Palettes built from #afd259

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd259 in the Color Lab