Skip to content

#af8f0b

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

RGB
175, 143, 11
HSL
48°, 88%, 37%
CMYK
0, 18, 94, 31
Luminance
0.2878

At a glance

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

Hex
#af8f0b
Hue
48°
yellow
Saturation
88%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2878
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.76:1
Closest name
Dark Goldenrod
ΔE2000 5.9
Where it sits
Hue48° of 360°
Saturation88%
Lightness37%
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#af8f0b
RGBrgb(175, 143, 11)
HSLhsl(48, 88%, 37%)
CMYKcmyk(0%, 18%, 94%, 31%)
LABlab(60.6 0.8 63.3)
LCHlch(60.6 63.3 89.3)
OKLCHoklch(0.661 0.133 92.6)
Decimal11505419
Display P3color(display-p3 0.686 0.561 0.043)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8f0b on white: 3.11:1
AA ✗ fail · AA-large · AAA
Aa
#af8f0b on black: 6.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A08D00
deuteranopia · #A89619
tritanopia · #BE827A

Color scale — 50 to 950

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

#FDFBF2
#FAF6E5
#F8EEC4
#F8E595
#F5D861
#F2CB2C
#E6BC0E
#af8f0b
#9A7E0A
#6F5B0C
#453907
Base = 700Lightest = 50 · #FDFBF2Darkest = 950 · #453907
:root {
  --brand-50: #FDFBF2;
  --brand-100: #FAF6E5;
  --brand-200: #F8EEC4;
  --brand-300: #F8E595;
  --brand-400: #F5D861;
  --brand-500: #F2CB2C;
  --brand-600: #E6BC0E;
  --brand-700: #af8f0b;
  --brand-800: #9A7E0A;
  --brand-900: #6F5B0C;
  --brand-950: #453907;
  --brand: #af8f0b;
  --brand-ink: #000000;
}

Colors that work with #af8f0b

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#EDE4C0
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#0754B3
Second voice, not a rival
Dark variant#786208
Hover, pressed, headers
Light variant#FDF9E7
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 #af8f0b

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#0B2BAF
Analogous left#AF3D0B
Analogous right#7DAF0B
Split-complement 1#0B7DAF
Split-complement 2#3D0BAF
Triadic 1#0BAF8F
Triadic 2#8F0BAF
Tetradic#0BAF3D

RGB percentages

Red68.6%
Green56.1%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta18.3%
Yellow93.7%
Key (black)31.4%

Color previews

#af8f0b text on a black background

contrast 6.76:1

Card sample

#af8f0b text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8f0b

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.

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

#af8f0b, answered

What color is #af8f0b?

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

What is the RGB value of #af8f0b?

rgb(175, 143, 11) — 175 red, 143 green and 11 blue out of 255, or 68.6% / 56.1% / 4.3% by channel.

Is #af8f0b a light or a dark color?

It is a mid-tone. Relative luminance is 0.2878 and perceived brightness is 57%, so black text on it reaches 6.76:1.

Should I use black or white text on #af8f0b?

Black. It scores 6.76:1 against #af8f0b, versus 3.11:1 for white — AA at any size.

What is the complementary color of #af8f0b?

#0B2BAF sits directly opposite on the wheel. Softer options are the split-complements #0B7DAF and #3D0BAF, which give the same contrast with far less vibration.

What colors go well with #af8f0b?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #0754B3 as an accent and #786208 for hover and pressed states. For a palette, the analogous pair #AF3D0B and #7DAF0B stays calm, while #0B2BAF is the loudest partner.

What is #af8f0b in CMYK for printing?

cmyk(0%, 18%, 94%, 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 #af8f0b 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 #AF6A0B; nudged cooler, #94B109.

Work with #af8f0b in the Color Lab