Skip to content

#afb321

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

RGB
175, 179, 33
HSL
62°, 69%, 42%
CMYK
2, 0, 82, 30
Luminance
0.4146

Every format

HEX#afb321
RGBrgb(175, 179, 33)
HSLhsl(62, 69%, 42%)
CMYKcmyk(2%, 0%, 82%, 30%)
LABlab(70.5 -17.6 66.6)
LCHlch(70.5 68.9 104.8)
OKLCHoklch(0.740 0.155 111.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb321 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#afb321 on black: 9.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.2%
Blue12.9%

CMYK percentages

Cyan2.2%
Magenta0.0%
Yellow81.6%
Key (black)29.8%

Color previews

#afb321 text on a black background

contrast 9.29:1

Card sample

#afb321 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb321

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb321 in the Color Lab