Skip to content

#afba14

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

RGB
175, 186, 20
HSL
64°, 81%, 40%
CMYK
6, 0, 89, 27
Luminance
0.4428

Every format

HEX#afba14
RGBrgb(175, 186, 20)
HSLhsl(64, 81%, 40%)
CMYKcmyk(6%, 0%, 89%, 27%)
LABlab(72.4 -21.5 71.0)
LCHlch(72.4 74.2 106.8)
OKLCHoklch(0.755 0.166 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba14 on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#afba14 on black: 9.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue7.8%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow89.2%
Key (black)27.1%

Color previews

#afba14 text on a black background

contrast 9.86:1

Card sample

#afba14 text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 186, 20, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 20, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba14;
background: linear-gradient(135deg, #afba14, #40BA14);

Monochromatic scale

Palettes built from #afba14

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba14 in the Color Lab