Skip to content

#af7c06

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

RGB
175, 124, 6
HSL
42°, 93%, 36%
CMYK
0, 29, 97, 31
Luminance
0.2354

At a glance

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

Hex
#af7c06
Hue
42°
yellow
Saturation
93%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2354
WCAG relative
Temperature
Warm
10/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
5.71:1
Closest name
Dark Goldenrod
ΔE2000 3.5
Where it sits
Hue42° of 360°
Saturation93%
Lightness36%
Temperature
Warm ← → Cool10% 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#af7c06
RGBrgb(175, 124, 6)
HSLhsl(42, 93%, 36%)
CMYKcmyk(0%, 29%, 97%, 31%)
LABlab(55.6 11.3 60.5)
LCHlch(55.6 61.5 79.4)
OKLCHoklch(0.622 0.128 79.4)
Decimal11500550
Display P3color(display-p3 0.686 0.486 0.024)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7c06 on white: 3.68:1
AA ✗ fail · AA-large · AAA
Aa
#af7c06 on black: 5.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #907E00
deuteranopia · #9C8A10
tritanopia · #BF6D69

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7c06 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.

#FDFAF2
#FBF4E4
#F9E9C2
#FBDC93
#F9CA5C
#F8B826
#EDA808
#C58C07
#af7c06
#725209
#473305
Base = 800Lightest = 50 · #FDFAF2Darkest = 950 · #473305
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FBF4E4;
  --brand-200: #F9E9C2;
  --brand-300: #FBDC93;
  --brand-400: #F9CA5C;
  --brand-500: #F8B826;
  --brand-600: #EDA808;
  --brand-700: #C58C07;
  --brand-800: #af7c06;
  --brand-900: #725209;
  --brand-950: #473305;
  --brand: #af7c06;
  --brand-ink: #000000;
}

Colors that work with #af7c06

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#FAF9F4
Tinted page background
Border#EDDFC0
Hairlines and dividers
Muted text#9B834B
Captions on the surface
Accent#0264B3
Second voice, not a rival
Dark variant#7B5704
Hover, pressed, headers
Light variant#FEF7E6
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 #af7c06

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#0639AF
Analogous left#AF2806
Analogous right#8EAF06
Split-complement 1#068EAF
Split-complement 2#2806AF
Triadic 1#06AF7C
Triadic 2#7C06AF
Tetradic#06AF28

RGB percentages

Red68.6%
Green48.6%
Blue2.4%

CMYK percentages

Cyan0.0%
Magenta29.1%
Yellow96.6%
Key (black)31.4%

Color previews

#af7c06 text on a black background

contrast 5.71:1

Card sample

#af7c06 text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 124, 6, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 124, 6, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7c06;
background: linear-gradient(135deg, #af7c06, #71AF06);

Monochromatic scale

Palettes built from #af7c06

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.

#af7c06 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.

#af7c06, answered

What color is #af7c06?

#af7c06 is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 3.5). It sits at 42° on the hue wheel with 93% saturation and 36% lightness, which reads as warm.

What is the RGB value of #af7c06?

rgb(175, 124, 6) — 175 red, 124 green and 6 blue out of 255, or 68.6% / 48.6% / 2.4% by channel.

Is #af7c06 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2354 and perceived brightness is 53%, so black text on it reaches 5.71:1.

Should I use black or white text on #af7c06?

Black. It scores 5.71:1 against #af7c06, versus 3.68:1 for white — AA at any size.

What is the complementary color of #af7c06?

#0639AF sits directly opposite on the wheel. Softer options are the split-complements #068EAF and #2806AF, which give the same contrast with far less vibration.

What colors go well with #af7c06?

For interface work: #FAF9F4 as the surface, #EDDFC0 for borders, #9B834B for secondary text, #0264B3 as an accent and #7B5704 for hover and pressed states. For a palette, the analogous pair #AF2806 and #8EAF06 stays calm, while #0639AF is the loudest partner.

What is #af7c06 in CMYK for printing?

cmyk(0%, 29%, 97%, 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 #af7c06 warm or cool?

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

Work with #af7c06 in the Color Lab