Skip to content

#af790f

a dark, electric orange · warm · closest name: Dark Goldenrod

RGB
175, 121, 15
HSL
40°, 84%, 37%
CMYK
0, 31, 91, 31
Luminance
0.2282

At a glance

Every number on this page in one read: what #af790f is made of, how bright it looks, and which way it leans.

Hex
#af790f
Hue
40°
orange
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2282
WCAG relative
Temperature
Warm
8/100 cool
Color family
Orange
Tone
Electric
Best ink
Black
5.56:1
Closest name
Dark Goldenrod
ΔE2000 4.9
Where it sits
Hue40° of 360°
Saturation84%
Lightness37%
Temperature
Warm ← → Cool8% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af790f
RGBrgb(175, 121, 15)
HSLhsl(40, 84%, 37%)
CMYKcmyk(0%, 31%, 91%, 31%)
LABlab(54.9 13.1 58.3)
LCHlch(54.9 59.7 77.3)
OKLCHoklch(0.616 0.125 76.5)
Decimal11499791
Display P3color(display-p3 0.686 0.475 0.059)

Copy-ready code

/* CSS */
color: #af790f;
background-color: #af790f;
/* Tailwind (arbitrary) */
class="text-[#af790f] bg-[#af790f]"
/* SCSS */
$brand: #af790f;
/* SwiftUI */
Color(red: 0.686, green: 0.475, blue: 0.059)
/* Android */
Color.parseColor("#af790f")
/* Flutter */
Color(0xFFAF790F)
/* Python / OpenCV (BGR) */
(15, 121, 175)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #af790f · 5.56:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.77:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.56:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af790f as text scores 3.77:1 on white and 5.56:1 on black.

Accessibility — WCAG contrast

Aa
#af790f on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#af790f on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8D7C00
deuteranopia · #9A8916
tritanopia · #BF6A67

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af790f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF9F2
#FAF3E6
#F6E6C5
#F6D698
#F2C264
#EDAE30
#E19C13
#af790f
#96680D
#6D4D0E
#443009
Base = 700Lightest = 50 · #FCF9F2Darkest = 950 · #443009
:root {
  --brand-50: #FCF9F2;
  --brand-100: #FAF3E6;
  --brand-200: #F6E6C5;
  --brand-300: #F6D698;
  --brand-400: #F2C264;
  --brand-500: #EDAE30;
  --brand-600: #E19C13;
  --brand-700: #af790f;
  --brand-800: #96680D;
  --brand-900: #6D4D0E;
  --brand-950: #443009;
  --brand: #af790f;
  --brand-ink: #000000;
}

Colors that work with #af790f

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B804B
Captions on the surface
Accent#0B6EB3
Second voice, not a rival
Dark variant#75510A
Hover, pressed, headers
Light variant#FDF6E8
Selected rows, tints
Dark surface#241F14
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #af790f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#0F45AF
Analogous left#AF290F
Analogous right#95AF0F
Split-complement 1#0F95AF
Split-complement 2#290FAF
Triadic 1#0FAF79
Triadic 2#790FAF
Tetradic#0FAF29

RGB percentages

Red68.6%
Green47.5%
Blue5.9%

CMYK percentages

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

Color previews

#af790f text on a black background

contrast 5.56:1

Card sample

#af790f text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af790f

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#af790f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
E-commerceFood deliveryLogisticsCreator tools
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af790f, answered

What color is #af790f?

#af790f is a dark electric orange, closest to Dark Goldenrod (ΔE2000 4.9). It sits at 40° on the hue wheel with 84% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af790f?

rgb(175, 121, 15) — 175 red, 121 green and 15 blue out of 255, or 68.6% / 47.5% / 5.9% by channel.

Is #af790f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2282 and perceived brightness is 52%, so black text on it reaches 5.56:1.

Should I use black or white text on #af790f?

Black. It scores 5.56:1 against #af790f, versus 3.77:1 for white — AA at any size.

What is the complementary color of #af790f?

#0F45AF sits directly opposite on the wheel. Softer options are the split-complements #0F95AF and #290FAF, which give the same contrast with far less vibration.

What colors go well with #af790f?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B804B for secondary text, #0B6EB3 as an accent and #75510A for hover and pressed states. For a palette, the analogous pair #AF290F and #95AF0F stays calm, while #0F45AF is the loudest partner.

What is #af790f in CMYK for printing?

cmyk(0%, 31%, 91%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af790f warm or cool?

Warm — it scores 8 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF630F; nudged cooler, #ACB10D.

Work with #af790f in the Color Lab