Skip to content

#afd461

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

RGB
175, 212, 97
HSL
79°, 57%, 61%
CMYK
18, 0, 54, 17
Luminance
0.5706

Every format

HEX#afd461
RGBrgb(175, 212, 97)
HSLhsl(79, 57%, 61%)
CMYKcmyk(18%, 0%, 54%, 17%)
LABlab(80.2 -29.8 52.1)
LCHlch(80.2 60.0 119.7)
OKLCHoklch(0.819 0.149 124.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd461 on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#afd461 on black: 12.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green83.1%
Blue38.0%

CMYK percentages

Cyan17.5%
Magenta0.0%
Yellow54.2%
Key (black)16.9%

Color previews

#afd461 text on a black background

contrast 12.41:1

Card sample

#afd461 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 212, 97, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 212, 97, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd461;
background: linear-gradient(135deg, #afd461, #62D461);

Monochromatic scale

Palettes built from #afd461

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd461 in the Color Lab