Skip to content

#afdf42

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

RGB
175, 223, 66
HSL
78°, 71%, 57%
CMYK
22, 0, 70, 13
Luminance
0.6228

Every format

HEX#afdf42
RGBrgb(175, 223, 66)
HSLhsl(78, 71%, 57%)
CMYKcmyk(22%, 0%, 70%, 13%)
LABlab(83.1 -37.1 68.0)
LCHlch(83.1 77.5 118.7)
OKLCHoklch(0.841 0.186 125.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf42 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf42 on black: 13.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue25.9%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow70.4%
Key (black)12.5%

Color previews

#afdf42 text on a black background

contrast 13.46:1

Card sample

#afdf42 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 223, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf42;
background: linear-gradient(135deg, #afdf42, #47DF42);

Monochromatic scale

Palettes built from #afdf42

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf42 in the Color Lab