Skip to content

#af9302

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

RGB
175, 147, 2
HSL
50°, 98%, 35%
CMYK
0, 16, 99, 31
Luminance
0.2999

At a glance

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

Hex
#af9302
Hue
50°
yellow
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2999
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.00:1
Closest name
Dark Goldenrod
ΔE2000 7.6
Where it sits
Hue50° of 360°
Saturation98%
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#af9302
RGBrgb(175, 147, 2)
HSLhsl(50, 98%, 35%)
CMYKcmyk(0%, 16%, 99%, 31%)
LABlab(61.6 -1.5 65.4)
LCHlch(61.6 65.4 91.3)
OKLCHoklch(0.669 0.137 95.3)
Decimal11506434
Display P3color(display-p3 0.686 0.576 0.008)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9302 on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#af9302 on black: 7.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A49000
deuteranopia · #AB9916
tritanopia · #BE867D

Color scale — 50 to 950

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

#FDFBF1
#FCF8E4
#FBF2C1
#FEEC90
#FDE259
#FCD921
#F2CB03
#CAA902
#af9302
#746206
#493E04
Base = 800Lightest = 50 · #FDFBF1Darkest = 950 · #493E04
:root {
  --brand-50: #FDFBF1;
  --brand-100: #FCF8E4;
  --brand-200: #FBF2C1;
  --brand-300: #FEEC90;
  --brand-400: #FDE259;
  --brand-500: #FCD921;
  --brand-600: #F2CB03;
  --brand-700: #CAA902;
  --brand-800: #af9302;
  --brand-900: #746206;
  --brand-950: #493E04;
  --brand: #af9302;
  --brand-ink: #000000;
}

Colors that work with #af9302

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#EDE5C0
Hairlines and dividers
Muted text#9B8E4B
Captions on the surface
Accent#0049B1
Second voice, not a rival
Dark variant#7E6A01
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 #af9302

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#021EAF
Analogous left#AF3D02
Analogous right#74AF02
Split-complement 1#0274AF
Split-complement 2#3D02AF
Triadic 1#02AF93
Triadic 2#9302AF
Tetradic#02AF3D

RGB percentages

Red68.6%
Green57.6%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta16.0%
Yellow98.9%
Key (black)31.4%

Color previews

#af9302 text on a black background

contrast 7.00:1

Card sample

#af9302 text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 147, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 147, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9302;
background: linear-gradient(135deg, #af9302, #58AF02);

Monochromatic scale

Palettes built from #af9302

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.

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

#af9302, answered

What color is #af9302?

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

What is the RGB value of #af9302?

rgb(175, 147, 2) — 175 red, 147 green and 2 blue out of 255, or 68.6% / 57.6% / 0.8% by channel.

Is #af9302 a light or a dark color?

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

Should I use black or white text on #af9302?

Black. It scores 7.00:1 against #af9302, versus 3.00:1 for white — AAA at any size.

What is the complementary color of #af9302?

#021EAF sits directly opposite on the wheel. Softer options are the split-complements #0274AF and #3D02AF, which give the same contrast with far less vibration.

What colors go well with #af9302?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8E4B for secondary text, #0049B1 as an accent and #7E6A01 for hover and pressed states. For a palette, the analogous pair #AF3D02 and #74AF02 stays calm, while #021EAF is the loudest partner.

What is #af9302 in CMYK for printing?

cmyk(0%, 16%, 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 #af9302 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 #AF6A02; nudged cooler, #8DB100.

Work with #af9302 in the Color Lab