Skip to content

#afab2b

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

RGB
175, 171, 43
HSL
58°, 61%, 43%
CMYK
0, 2, 75, 31
Luminance
0.3841

Every format

HEX#afab2b
RGBrgb(175, 171, 43)
HSLhsl(58, 61%, 43%)
CMYKcmyk(0%, 2%, 75%, 31%)
LABlab(68.3 -13.2 61.7)
LCHlch(68.3 63.1 102.1)
OKLCHoklch(0.722 0.142 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab2b on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#afab2b on black: 8.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow75.4%
Key (black)31.4%

Color previews

#afab2b text on a black background

contrast 8.68:1

Card sample

#afab2b text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab2b in the Color Lab