Skip to content

#af780d

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

RGB
175, 120, 13
HSL
40°, 86%, 37%
CMYK
0, 31, 93, 31
Luminance
0.2258

Every format

HEX#af780d
RGBrgb(175, 120, 13)
HSLhsl(40, 86%, 37%)
CMYKcmyk(0%, 31%, 93%, 31%)
LABlab(54.6 13.6 58.5)
LCHlch(54.6 60.1 76.9)
OKLCHoklch(0.614 0.126 75.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af780d on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#af780d on black: 5.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green47.1%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow92.6%
Key (black)31.4%

Color previews

#af780d text on a black background

contrast 5.52:1

Card sample

#af780d text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 120, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 120, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af780d;
background: linear-gradient(135deg, #af780d, #7AAF0D);

Monochromatic scale

Palettes built from #af780d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af780d in the Color Lab