Skip to content

#afdf4b

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

RGB
175, 223, 75
HSL
80°, 70%, 58%
CMYK
22, 0, 66, 13
Luminance
0.6240

Every format

HEX#afdf4b
RGBrgb(175, 223, 75)
HSLhsl(80, 70%, 58%)
CMYKcmyk(22%, 0%, 66%, 13%)
LABlab(83.1 -36.6 64.7)
LCHlch(83.1 74.3 119.5)
OKLCHoklch(0.842 0.180 125.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf4b on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf4b on black: 13.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue29.4%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow66.4%
Key (black)12.5%

Color previews

#afdf4b text on a black background

contrast 13.48:1

Card sample

#afdf4b text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf4b in the Color Lab