Skip to content

#afab03

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

RGB
175, 171, 3
HSL
59°, 97%, 35%
CMYK
0, 2, 98, 31
Luminance
0.3825

Every format

HEX#afab03
RGBrgb(175, 171, 3)
HSLhsl(59, 97%, 35%)
CMYKcmyk(0%, 2%, 98%, 31%)
LABlab(68.2 -14.2 70.1)
LCHlch(68.2 71.5 101.4)
OKLCHoklch(0.721 0.155 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue1.2%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow98.3%
Key (black)31.4%

Color previews

#afab03 text on a black background

contrast 8.65:1

Card sample

#afab03 text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab03

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab03 in the Color Lab