Skip to content

#afba21

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

RGB
175, 186, 33
HSL
64°, 70%, 43%
CMYK
6, 0, 82, 27
Luminance
0.4434

Every format

HEX#afba21
RGBrgb(175, 186, 33)
HSLhsl(64, 70%, 43%)
CMYKcmyk(6%, 0%, 82%, 27%)
LABlab(72.5 -21.1 68.3)
LCHlch(72.5 71.5 107.2)
OKLCHoklch(0.755 0.162 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green72.9%
Blue12.9%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow82.3%
Key (black)27.1%

Color previews

#afba21 text on a black background

contrast 9.87:1

Card sample

#afba21 text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba21 in the Color Lab