Skip to content

#af8f12

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

RGB
175, 143, 18
HSL
48°, 81%, 38%
CMYK
0, 18, 90, 31
Luminance
0.2880

At a glance

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

Hex
#af8f12
Hue
48°
yellow
Saturation
81%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2880
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.76:1
Closest name
Dark Goldenrod
ΔE2000 5.8
Where it sits
Hue48° of 360°
Saturation81%
Lightness38%
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#af8f12
RGBrgb(175, 143, 18)
HSLhsl(48, 81%, 38%)
CMYKcmyk(0%, 18%, 90%, 31%)
LABlab(60.6 0.9 62.0)
LCHlch(60.6 62.0 89.1)
OKLCHoklch(0.661 0.131 92.3)
Decimal11505426
Display P3color(display-p3 0.686 0.561 0.071)

Copy-ready code

/* CSS */
color: #af8f12;
background-color: #af8f12;
/* Tailwind (arbitrary) */
class="text-[#af8f12] bg-[#af8f12]"
/* SCSS */
$brand: #af8f12;
/* SwiftUI */
Color(red: 0.686, green: 0.561, blue: 0.071)
/* Android */
Color.parseColor("#af8f12")
/* Flutter */
Color(0xFFAF8F12)
/* Python / OpenCV (BGR) */
(18, 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 #af8f12 · 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: #af8f12 as text scores 3.11:1 on white and 6.76:1 on black.

Accessibility — WCAG contrast

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

Color scale — 50 to 950

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

#FCFAF2
#F9F5E6
#F6ECC6
#F5E299
#EFD366
#EAC534
#DEB517
#af8f12
#94790F
#6B580F
#43370A
Base = 700Lightest = 50 · #FCFAF2Darkest = 950 · #43370A
:root {
  --brand-50: #FCFAF2;
  --brand-100: #F9F5E6;
  --brand-200: #F6ECC6;
  --brand-300: #F5E299;
  --brand-400: #EFD366;
  --brand-500: #EAC534;
  --brand-600: #DEB517;
  --brand-700: #af8f12;
  --brand-800: #94790F;
  --brand-900: #6B580F;
  --brand-950: #43370A;
  --brand: #af8f12;
  --brand-ink: #000000;
}

Colors that work with #af8f12

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#0E59B3
Second voice, not a rival
Dark variant#745F0C
Hover, pressed, headers
Light variant#FDF8E8
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 #af8f12

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#1232AF
Analogous left#AF4112
Analogous right#80AF12
Split-complement 1#1280AF
Split-complement 2#4112AF
Triadic 1#12AF8F
Triadic 2#8F12AF
Tetradic#12AF41

RGB percentages

Red68.6%
Green56.1%
Blue7.1%

CMYK percentages

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

Color previews

#af8f12 text on a black background

contrast 6.76:1

Card sample

#af8f12 text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8f12

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.

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

#af8f12, answered

What color is #af8f12?

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

What is the RGB value of #af8f12?

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

Is #af8f12 a light or a dark color?

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

Should I use black or white text on #af8f12?

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

What is the complementary color of #af8f12?

#1232AF sits directly opposite on the wheel. Softer options are the split-complements #1280AF and #4112AF, which give the same contrast with far less vibration.

What colors go well with #af8f12?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #0E59B3 as an accent and #745F0C for hover and pressed states. For a palette, the analogous pair #AF4112 and #80AF12 stays calm, while #1232AF is the loudest partner.

What is #af8f12 in CMYK for printing?

cmyk(0%, 18%, 90%, 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 #af8f12 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 #AF6C12; nudged cooler, #96B110.

Work with #af8f12 in the Color Lab