Skip to content

#afab0c

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

RGB
175, 171, 12
HSL
59°, 87%, 37%
CMYK
0, 2, 93, 31
Luminance
0.3827

Every format

HEX#afab0c
RGBrgb(175, 171, 12)
HSLhsl(59, 87%, 37%)
CMYKcmyk(0%, 2%, 93%, 31%)
LABlab(68.2 -14.1 69.0)
LCHlch(68.2 70.4 101.5)
OKLCHoklch(0.721 0.153 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab0c on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#afab0c on black: 8.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow93.1%
Key (black)31.4%

Color previews

#afab0c text on a black background

contrast 8.65:1

Card sample

#afab0c text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab0c in the Color Lab