Skip to content

#afba1c

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

RGB
175, 186, 28
HSL
64°, 74%, 42%
CMYK
6, 0, 85, 27
Luminance
0.4432

Every format

HEX#afba1c
RGBrgb(175, 186, 28)
HSLhsl(64, 74%, 42%)
CMYKcmyk(6%, 0%, 85%, 27%)
LABlab(72.4 -21.3 69.5)
LCHlch(72.4 72.7 107.0)
OKLCHoklch(0.755 0.164 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green72.9%
Blue11.0%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow84.9%
Key (black)27.1%

Color previews

#afba1c text on a black background

contrast 9.86:1

Card sample

#afba1c text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba1c in the Color Lab