Skip to content

#afba22

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

RGB
175, 186, 34
HSL
64°, 69%, 43%
CMYK
6, 0, 82, 27
Luminance
0.4435

Every format

HEX#afba22
RGBrgb(175, 186, 34)
HSLhsl(64, 69%, 43%)
CMYKcmyk(6%, 0%, 82%, 27%)
LABlab(72.5 -21.1 68.0)
LCHlch(72.5 71.3 107.2)
OKLCHoklch(0.755 0.161 114.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba22 on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#afba22 on black: 9.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue13.3%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow81.7%
Key (black)27.1%

Color previews

#afba22 text on a black background

contrast 9.87:1

Card sample

#afba22 text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 186, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba22;
background: linear-gradient(135deg, #afba22, #4ABA22);

Monochromatic scale

Palettes built from #afba22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba22 in the Color Lab