Skip to content

#afb12f

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

RGB
175, 177, 47
HSL
61°, 58%, 44%
CMYK
1, 0, 73, 31
Luminance
0.4076

Every format

HEX#afb12f
RGBrgb(175, 177, 47)
HSLhsl(61, 58%, 44%)
CMYKcmyk(1%, 0%, 73%, 31%)
LABlab(70.0 -16.1 61.9)
LCHlch(70.0 64.0 104.6)
OKLCHoklch(0.736 0.146 110.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb12f on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#afb12f on black: 9.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.4%
Blue18.4%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow73.4%
Key (black)30.6%

Color previews

#afb12f text on a black background

contrast 9.15:1

Card sample

#afb12f text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 177, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 177, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb12f;
background: linear-gradient(135deg, #afb12f, #58B12F);

Monochromatic scale

Palettes built from #afb12f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb12f in the Color Lab