Skip to content

#afd458

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

RGB
175, 212, 88
HSL
78°, 59%, 59%
CMYK
18, 0, 59, 17
Luminance
0.5691

Every format

HEX#afd458
RGBrgb(175, 212, 88)
HSLhsl(78, 59%, 59%)
CMYKcmyk(18%, 0%, 59%, 17%)
LABlab(80.1 -30.6 56.1)
LCHlch(80.1 63.9 118.6)
OKLCHoklch(0.818 0.157 123.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd458 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#afd458 on black: 12.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green83.1%
Blue34.5%

CMYK percentages

Cyan17.5%
Magenta0.0%
Yellow58.5%
Key (black)16.9%

Color previews

#afd458 text on a black background

contrast 12.38:1

Card sample

#afd458 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd458

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd458 in the Color Lab