Skip to content

#afb030

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

RGB
175, 176, 48
HSL
61°, 57%, 44%
CMYK
1, 0, 73, 31
Luminance
0.4038

Every format

HEX#afb030
RGBrgb(175, 176, 48)
HSLhsl(61, 57%, 44%)
CMYKcmyk(1%, 0%, 73%, 31%)
LABlab(69.7 -15.5 61.3)
LCHlch(69.7 63.3 104.2)
OKLCHoklch(0.734 0.144 109.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb030 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#afb030 on black: 9.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.0%
Blue18.8%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow72.7%
Key (black)31.0%

Color previews

#afb030 text on a black background

contrast 9.08:1

Card sample

#afb030 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 176, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 176, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb030;
background: linear-gradient(135deg, #afb030, #5AB030);

Monochromatic scale

Palettes built from #afb030

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb030 in the Color Lab