Skip to content

#afab40

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

RGB
175, 171, 64
HSL
58°, 46%, 47%
CMYK
0, 2, 63, 31
Luminance
0.3861

Every format

HEX#afab40
RGBrgb(175, 171, 64)
HSLhsl(58, 46%, 47%)
CMYKcmyk(0%, 2%, 63%, 31%)
LABlab(68.5 -12.1 53.8)
LCHlch(68.5 55.1 102.7)
OKLCHoklch(0.724 0.128 107.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab40 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#afab40 on black: 8.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue25.1%

CMYK percentages

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

Color previews

#afab40 text on a black background

contrast 8.72:1

Card sample

#afab40 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab40 in the Color Lab