Skip to content

#afb80d

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

RGB
175, 184, 13
HSL
63°, 87%, 39%
CMYK
5, 0, 93, 28
Luminance
0.4342

Every format

HEX#afb80d
RGBrgb(175, 184, 13)
HSLhsl(63, 87%, 39%)
CMYKcmyk(5%, 0%, 93%, 28%)
LABlab(71.8 -20.6 71.6)
LCHlch(71.8 74.5 106.1)
OKLCHoklch(0.750 0.165 113.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb80d on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#afb80d on black: 9.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.2%
Blue5.1%

CMYK percentages

Cyan4.9%
Magenta0.0%
Yellow92.9%
Key (black)27.8%

Color previews

#afb80d text on a black background

contrast 9.68:1

Card sample

#afb80d text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb80d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb80d in the Color Lab