Skip to content

#afb040

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

RGB
175, 176, 64
HSL
61°, 47%, 47%
CMYK
1, 0, 64, 31
Luminance
0.4053

Every format

HEX#afb040
RGBrgb(175, 176, 64)
HSLhsl(61, 47%, 47%)
CMYKcmyk(1%, 0%, 64%, 31%)
LABlab(69.8 -14.7 55.2)
LCHlch(69.8 57.1 104.9)
OKLCHoklch(0.735 0.133 109.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb040 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#afb040 on black: 9.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.0%
Blue25.1%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow63.6%
Key (black)31.0%

Color previews

#afb040 text on a black background

contrast 9.11:1

Card sample

#afb040 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb040 in the Color Lab