Skip to content

#af8c07

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

RGB
175, 140, 7
HSL
48°, 92%, 36%
CMYK
0, 20, 96, 31
Luminance
0.2789

At a glance

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

Hex
#af8c07
Hue
48°
yellow
Saturation
92%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2789
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.58:1
Closest name
Dark Goldenrod
ΔE2000 4.8
Where it sits
Hue48° of 360°
Saturation92%
Lightness36%
Temperature
Warm ← → Cool15% 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#af8c07
RGBrgb(175, 140, 7)
HSLhsl(48, 92%, 36%)
CMYKcmyk(0%, 20%, 96%, 31%)
LABlab(59.8 2.4 63.3)
LCHlch(59.8 63.4 87.8)
OKLCHoklch(0.654 0.132 90.7)
Decimal11504647
Display P3color(display-p3 0.686 0.549 0.027)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8c07 on white: 3.19:1
AA ✗ fail · AA-large · AAA
Aa
#af8c07 on black: 6.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9E8A00
deuteranopia · #A69416
tritanopia · #BE7F77

Color scale — 50 to 950

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

#FDFBF2
#FBF6E4
#F9EEC3
#FBE593
#F9D85D
#F6CB27
#EBBC09
#C49D08
#af8c07
#715C09
#473906
Base = 800Lightest = 50 · #FDFBF2Darkest = 950 · #473906
:root {
  --brand-50: #FDFBF2;
  --brand-100: #FBF6E4;
  --brand-200: #F9EEC3;
  --brand-300: #FBE593;
  --brand-400: #F9D85D;
  --brand-500: #F6CB27;
  --brand-600: #EBBC09;
  --brand-700: #C49D08;
  --brand-800: #af8c07;
  --brand-900: #715C09;
  --brand-950: #473906;
  --brand: #af8c07;
  --brand-ink: #000000;
}

Colors that work with #af8c07

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#EDE3C0
Hairlines and dividers
Muted text#9B8A4B
Captions on the surface
Accent#0354B3
Second voice, not a rival
Dark variant#7B6205
Hover, pressed, headers
Light variant#FEF9E6
Selected rows, tints
Dark surface#242114
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 #af8c07

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#072AAF
Analogous left#AF3807
Analogous right#7EAF07
Split-complement 1#077EAF
Split-complement 2#3807AF
Triadic 1#07AF8C
Triadic 2#8C07AF
Tetradic#07AF38

RGB percentages

Red68.6%
Green54.9%
Blue2.7%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow96.0%
Key (black)31.4%

Color previews

#af8c07 text on a black background

contrast 6.58:1

Card sample

#af8c07 text on a white background

contrast 3.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8c07

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.

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

#af8c07, answered

What color is #af8c07?

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

What is the RGB value of #af8c07?

rgb(175, 140, 7) — 175 red, 140 green and 7 blue out of 255, or 68.6% / 54.9% / 2.7% by channel.

Is #af8c07 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2789 and perceived brightness is 56%, so black text on it reaches 6.58:1.

Should I use black or white text on #af8c07?

Black. It scores 6.58:1 against #af8c07, versus 3.19:1 for white — AA at any size.

What is the complementary color of #af8c07?

#072AAF sits directly opposite on the wheel. Softer options are the split-complements #077EAF and #3807AF, which give the same contrast with far less vibration.

What colors go well with #af8c07?

For interface work: #FAF9F4 as the surface, #EDE3C0 for borders, #9B8A4B for secondary text, #0354B3 as an accent and #7B6205 for hover and pressed states. For a palette, the analogous pair #AF3807 and #7EAF07 stays calm, while #072AAF is the loudest partner.

What is #af8c07 in CMYK for printing?

cmyk(0%, 20%, 96%, 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 #af8c07 warm or cool?

Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF6807; nudged cooler, #96B105.

Work with #af8c07 in the Color Lab