Skip to content

#af7501

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

RGB
175, 117, 1
HSL
40°, 99%, 35%
CMYK
0, 33, 99, 31
Luminance
0.2184

At a glance

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

Hex
#af7501
Hue
40°
yellow
Saturation
99%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2184
WCAG relative
Temperature
Warm
8/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
5.37:1
Closest name
Dark Goldenrod
ΔE2000 6.2
Where it sits
Hue40° of 360°
Saturation99%
Lightness35%
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#af7501
RGBrgb(175, 117, 1)
HSLhsl(40, 99%, 35%)
CMYKcmyk(0%, 33%, 99%, 31%)
LABlab(53.9 15.1 60.2)
LCHlch(53.9 62.1 75.9)
OKLCHoklch(0.608 0.128 74.5)
Decimal11498753
Display P3color(display-p3 0.686 0.459 0.004)

Copy-ready code

/* CSS */
color: #af7501;
background-color: #af7501;
/* Tailwind (arbitrary) */
class="text-[#af7501] bg-[#af7501]"
/* SCSS */
$brand: #af7501;
/* SwiftUI */
Color(red: 0.686, green: 0.459, blue: 0.004)
/* Android */
Color.parseColor("#af7501")
/* Flutter */
Color(0xFFAF7501)
/* Python / OpenCV (BGR) */
(1, 117, 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 #af7501 · 5.37:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.91:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.37:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af7501 as text scores 3.91:1 on white and 5.37:1 on black.

Accessibility — WCAG contrast

Aa
#af7501 on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#af7501 on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8A7800
deuteranopia · #978609
tritanopia · #C06663

Color scale — 50 to 950

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

#FEF9F1
#FCF4E3
#FBE8C0
#FED98F
#FEC758
#FEB420
#F3A301
#CB8801
#af7501
#755006
#493203
Base = 800Lightest = 50 · #FEF9F1Darkest = 950 · #493203
:root {
  --brand-50: #FEF9F1;
  --brand-100: #FCF4E3;
  --brand-200: #FBE8C0;
  --brand-300: #FED98F;
  --brand-400: #FEC758;
  --brand-500: #FEB420;
  --brand-600: #F3A301;
  --brand-700: #CB8801;
  --brand-800: #af7501;
  --brand-900: #755006;
  --brand-950: #493203;
  --brand: #af7501;
  --brand-ink: #000000;
}

Colors that work with #af7501

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#0067B0
Second voice, not a rival
Dark variant#7F5501
Hover, pressed, headers
Light variant#FFF6E6
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 #af7501

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#013BAF
Analogous left#AF1E01
Analogous right#92AF01
Split-complement 1#0192AF
Split-complement 2#1E01AF
Triadic 1#01AF75
Triadic 2#7501AF
Tetradic#01AF1E

RGB percentages

Red68.6%
Green45.9%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta33.1%
Yellow99.4%
Key (black)31.4%

Color previews

#af7501 text on a black background

contrast 5.37:1

Card sample

#af7501 text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 117, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 117, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7501;
background: linear-gradient(135deg, #af7501, #75AF01);

Monochromatic scale

Palettes built from #af7501

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.

#af7501 in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#af7501, answered

What color is #af7501?

#af7501 is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 6.2). It sits at 40° on the hue wheel with 99% saturation and 35% lightness, which reads as warm.

What is the RGB value of #af7501?

rgb(175, 117, 1) — 175 red, 117 green and 1 blue out of 255, or 68.6% / 45.9% / 0.4% by channel.

Is #af7501 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2184 and perceived brightness is 51%, so black text on it reaches 5.37:1.

Should I use black or white text on #af7501?

Black. It scores 5.37:1 against #af7501, versus 3.91:1 for white — AA at any size.

What is the complementary color of #af7501?

#013BAF sits directly opposite on the wheel. Softer options are the split-complements #0192AF and #1E01AF, which give the same contrast with far less vibration.

What colors go well with #af7501?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B804B for secondary text, #0067B0 as an accent and #7F5501 for hover and pressed states. For a palette, the analogous pair #AF1E01 and #92AF01 stays calm, while #013BAF is the loudest partner.

What is #af7501 in CMYK for printing?

cmyk(0%, 33%, 99%, 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 #af7501 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 #AF5D01; nudged cooler, #AAB000.

Work with #af7501 in the Color Lab