Skip to content

#af9c0f

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

RGB
175, 156, 15
HSL
53°, 84%, 37%
CMYK
0, 11, 91, 31
Luminance
0.3293

Every format

HEX#af9c0f
RGBrgb(175, 156, 15)
HSLhsl(53, 84%, 37%)
CMYKcmyk(0%, 11%, 91%, 31%)
LABlab(64.1 -6.1 65.3)
LCHlch(64.1 65.6 95.4)
OKLCHoklch(0.689 0.140 100.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9c0f on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#af9c0f on black: 7.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green61.2%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow91.4%
Key (black)31.4%

Color previews

#af9c0f text on a black background

contrast 7.59:1

Card sample

#af9c0f text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 156, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 156, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9c0f;
background: linear-gradient(135deg, #af9c0f, #57AF0F);

Monochromatic scale

Palettes built from #af9c0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9c0f in the Color Lab