Skip to content

#afcc55

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

RGB
175, 204, 85
HSL
75°, 54%, 57%
CMYK
14, 0, 58, 20
Luminance
0.5296

Every format

HEX#afcc55
RGBrgb(175, 204, 85)
HSLhsl(75, 54%, 57%)
CMYKcmyk(14%, 0%, 58%, 20%)
LABlab(77.8 -27.0 54.8)
LCHlch(77.8 61.1 116.2)
OKLCHoklch(0.800 0.149 121.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc55 on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#afcc55 on black: 11.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue33.3%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow58.3%
Key (black)20.0%

Color previews

#afcc55 text on a black background

contrast 11.59:1

Card sample

#afcc55 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 204, 85, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 204, 85, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afcc55;
background: linear-gradient(135deg, #afcc55, #60CC55);

Monochromatic scale

Palettes built from #afcc55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc55 in the Color Lab