Skip to content

#afba25

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

RGB
175, 186, 37
HSL
64°, 67%, 44%
CMYK
6, 0, 80, 27
Luminance
0.4437

Every format

HEX#afba25
RGBrgb(175, 186, 37)
HSLhsl(64, 67%, 44%)
CMYKcmyk(6%, 0%, 80%, 27%)
LABlab(72.5 -21.0 67.3)
LCHlch(72.5 70.5 107.4)
OKLCHoklch(0.755 0.160 114.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green72.9%
Blue14.5%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow80.1%
Key (black)27.1%

Color previews

#afba25 text on a black background

contrast 9.87:1

Card sample

#afba25 text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba25

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba25 in the Color Lab