Skip to content

#afd145

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

RGB
175, 209, 69
HSL
75°, 60%, 55%
CMYK
16, 0, 67, 18
Luminance
0.5514

Every format

HEX#afd145
RGBrgb(175, 209, 69)
HSLhsl(75, 60%, 55%)
CMYKcmyk(16%, 0%, 67%, 18%)
LABlab(79.1 -30.5 62.9)
LCHlch(79.1 69.9 115.9)
OKLCHoklch(0.810 0.168 122.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd145 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#afd145 on black: 12.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.0%
Blue27.1%

CMYK percentages

Cyan16.3%
Magenta0.0%
Yellow67.0%
Key (black)18.0%

Color previews

#afd145 text on a black background

contrast 12.03:1

Card sample

#afd145 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd145

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd145 in the Color Lab