Skip to content

#afdf56

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

RGB
175, 223, 86
HSL
81°, 68%, 61%
CMYK
22, 0, 61, 13
Luminance
0.6256

Every format

HEX#afdf56
RGBrgb(175, 223, 86)
HSLhsl(81, 68%, 61%)
CMYKcmyk(22%, 0%, 61%, 13%)
LABlab(83.2 -35.8 60.3)
LCHlch(83.2 70.2 120.7)
OKLCHoklch(0.843 0.172 126.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf56 on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#afdf56 on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue33.7%

CMYK percentages

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

Color previews

#afdf56 text on a black background

contrast 13.51:1

Card sample

#afdf56 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf56 in the Color Lab