Skip to content

#afbc3b

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

RGB
175, 188, 59
HSL
66°, 52%, 48%
CMYK
7, 0, 69, 26
Luminance
0.4540

Every format

HEX#afbc3b
RGBrgb(175, 188, 59)
HSLhsl(66, 52%, 48%)
CMYKcmyk(7%, 0%, 69%, 26%)
LABlab(73.2 -21.0 60.6)
LCHlch(73.2 64.2 109.1)
OKLCHoklch(0.761 0.150 115.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbc3b on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#afbc3b on black: 10.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green73.7%
Blue23.1%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow68.6%
Key (black)26.3%

Color previews

#afbc3b text on a black background

contrast 10.08:1

Card sample

#afbc3b text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbc3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbc3b in the Color Lab