Skip to content

#af9503

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

RGB
175, 149, 3
HSL
51°, 97%, 35%
CMYK
0, 15, 98, 31
Luminance
0.3062

At a glance

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

Hex
#af9503
Hue
51°
yellow
Saturation
97%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
58%
weighted brightness
Luminance
0.3062
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.12:1
Closest name
Dark Goldenrod
ΔE2000 8.4
Where it sits
Hue51° of 360°
Saturation97%
Lightness35%
Temperature
Warm ← → Cool17% 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#af9503
RGBrgb(175, 149, 3)
HSLhsl(51, 97%, 35%)
CMYKcmyk(0%, 15%, 98%, 31%)
LABlab(62.2 -2.5 65.7)
LCHlch(62.2 65.7 92.2)
OKLCHoklch(0.673 0.138 96.5)
Decimal11506947
Display P3color(display-p3 0.686 0.584 0.012)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9503 on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#af9503 on black: 7.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A69200
deuteranopia · #AD9A17
tritanopia · #BE887E

Color scale — 50 to 950

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

#FDFCF1
#FCF8E4
#FBF2C1
#FDED91
#FCE35A
#FBDA22
#F1CD04
#C9AB03
#af9503
#746307
#483E04
Base = 800Lightest = 50 · #FDFCF1Darkest = 950 · #483E04
:root {
  --brand-50: #FDFCF1;
  --brand-100: #FCF8E4;
  --brand-200: #FBF2C1;
  --brand-300: #FDED91;
  --brand-400: #FCE35A;
  --brand-500: #FBDA22;
  --brand-600: #F1CD04;
  --brand-700: #C9AB03;
  --brand-800: #af9503;
  --brand-900: #746307;
  --brand-950: #483E04;
  --brand: #af9503;
  --brand-ink: #000000;
}

Colors that work with #af9503

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#EDE6C0
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#0047B2
Second voice, not a rival
Dark variant#7D6B02
Hover, pressed, headers
Light variant#FFFBE6
Selected rows, tints
Dark surface#242214
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 #af9503

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#031DAF
Analogous left#AF3F03
Analogous right#73AF03
Split-complement 1#0373AF
Split-complement 2#3F03AF
Triadic 1#03AF95
Triadic 2#9503AF
Tetradic#03AF3F

RGB percentages

Red68.6%
Green58.4%
Blue1.2%

CMYK percentages

Cyan0.0%
Magenta14.9%
Yellow98.3%
Key (black)31.4%

Color previews

#af9503 text on a black background

contrast 7.12:1

Card sample

#af9503 text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 149, 3, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 149, 3, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9503;
background: linear-gradient(135deg, #af9503, #56AF03);

Monochromatic scale

Palettes built from #af9503

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.

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

#af9503, answered

What color is #af9503?

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

What is the RGB value of #af9503?

rgb(175, 149, 3) — 175 red, 149 green and 3 blue out of 255, or 68.6% / 58.4% / 1.2% by channel.

Is #af9503 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3062 and perceived brightness is 58%, so black text on it reaches 7.12:1.

Should I use black or white text on #af9503?

Black. It scores 7.12:1 against #af9503, versus 2.95:1 for white — AAA at any size.

What is the complementary color of #af9503?

#031DAF sits directly opposite on the wheel. Softer options are the split-complements #0373AF and #3F03AF, which give the same contrast with far less vibration.

What colors go well with #af9503?

For interface work: #FAF9F4 as the surface, #EDE6C0 for borders, #9B8F4B for secondary text, #0047B2 as an accent and #7D6B02 for hover and pressed states. For a palette, the analogous pair #AF3F03 and #73AF03 stays calm, while #031DAF is the loudest partner.

What is #af9503 in CMYK for printing?

cmyk(0%, 15%, 98%, 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 #af9503 warm or cool?

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

Work with #af9503 in the Color Lab