Skip to content

#afb22b

a dark, vivid yellow · cool · closest name: olive

RGB
175, 178, 43
HSL
61°, 61%, 43%
CMYK
2, 0, 76, 30
Luminance
0.4113

Every format

HEX#afb22b
RGBrgb(175, 178, 43)
HSLhsl(61, 61%, 43%)
CMYKcmyk(2%, 0%, 76%, 30%)
LABlab(70.3 -16.8 63.5)
LCHlch(70.3 65.7 104.8)
OKLCHoklch(0.738 0.149 110.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb22b on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#afb22b on black: 9.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue16.9%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow75.8%
Key (black)30.2%

Color previews

#afb22b text on a black background

contrast 9.23:1

Card sample

#afb22b text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 178, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 178, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb22b;
background: linear-gradient(135deg, #afb22b, #55B22B);

Monochromatic scale

Palettes built from #afb22b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb22b in the Color Lab