Skip to content

#af9021

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

RGB
175, 144, 33
HSL
47°, 68%, 41%
CMYK
0, 18, 81, 31
Luminance
0.2917

Every format

HEX#af9021
RGBrgb(175, 144, 33)
HSLhsl(47, 68%, 41%)
CMYKcmyk(0%, 18%, 81%, 31%)
LABlab(60.9 0.8 58.3)
LCHlch(60.9 58.3 89.2)
OKLCHoklch(0.664 0.126 92.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9021 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#af9021 on black: 6.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green56.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta17.7%
Yellow81.1%
Key (black)31.4%

Color previews

#af9021 text on a black background

contrast 6.83:1

Card sample

#af9021 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9021 in the Color Lab