Skip to content

#aa7f00

a dark, electric yellow · warm · closest name: peru

RGB
170, 127, 0
HSL
45°, 100%, 33%
CMYK
0, 25, 100, 33
Luminance
0.2372

Every format

HEX#aa7f00
RGBrgb(170, 127, 0)
HSLhsl(45, 100%, 33%)
CMYKcmyk(0%, 25%, 100%, 33%)
LABlab(55.8 7.2 61.4)
LCHlch(55.8 61.8 83.3)
OKLCHoklch(0.622 0.128 84.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa7f00 on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#aa7f00 on black: 5.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green49.8%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta25.3%
Yellow100.0%
Key (black)33.3%

Color previews

#aa7f00 text on a black background

contrast 5.74:1

Card sample

#aa7f00 text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 127, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 127, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aa7f00;
background: linear-gradient(135deg, #aa7f00, #64AA00);

Monochromatic scale

Palettes built from #aa7f00

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa7f00 in the Color Lab