Skip to content

#afb620

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

RGB
175, 182, 32
HSL
63°, 70%, 42%
CMYK
4, 0, 82, 29
Luminance
0.4267

Every format

HEX#afb620
RGBrgb(175, 182, 32)
HSLhsl(63, 70%, 42%)
CMYKcmyk(4%, 0%, 82%, 29%)
LABlab(71.3 -19.2 67.6)
LCHlch(71.3 70.3 105.9)
OKLCHoklch(0.746 0.158 112.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb620 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#afb620 on black: 9.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.4%
Blue12.5%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow82.4%
Key (black)28.6%

Color previews

#afb620 text on a black background

contrast 9.53:1

Card sample

#afb620 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb620

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb620 in the Color Lab