Skip to content

#af9028

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

RGB
175, 144, 40
HSL
46°, 63%, 42%
CMYK
0, 18, 77, 31
Luminance
0.2921

Every format

HEX#af9028
RGBrgb(175, 144, 40)
HSLhsl(46, 63%, 42%)
CMYKcmyk(0%, 18%, 77%, 31%)
LABlab(61.0 1.1 55.9)
LCHlch(61.0 55.9 88.9)
OKLCHoklch(0.664 0.122 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green56.5%
Blue15.7%

CMYK percentages

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

Color previews

#af9028 text on a black background

contrast 6.84:1

Card sample

#af9028 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9028

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9028 in the Color Lab