Skip to content

#afd045

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

RGB
175, 208, 69
HSL
74°, 60%, 54%
CMYK
16, 0, 67, 18
Luminance
0.5466

Every format

HEX#afd045
RGBrgb(175, 208, 69)
HSLhsl(74, 60%, 54%)
CMYKcmyk(16%, 0%, 67%, 18%)
LABlab(78.8 -30.1 62.6)
LCHlch(78.8 69.4 115.7)
OKLCHoklch(0.807 0.166 121.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd045 on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#afd045 on black: 11.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green81.6%
Blue27.1%

CMYK percentages

Cyan15.9%
Magenta0.0%
Yellow66.8%
Key (black)18.4%

Color previews

#afd045 text on a black background

contrast 11.93:1

Card sample

#afd045 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 208, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 208, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd045;
background: linear-gradient(135deg, #afd045, #52D045);

Monochromatic scale

Palettes built from #afd045

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd045 in the Color Lab