Skip to content

#af951c

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

RGB
175, 149, 28
HSL
49°, 72%, 40%
CMYK
0, 15, 84, 31
Luminance
0.3069

At a glance

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

Hex
#af951c
Hue
49°
yellow
Saturation
72%
vivid
Lightness
40%
dark
Brightness
69%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3069
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.14:1
Closest name
Dark Goldenrod
ΔE2000 8.1
Where it sits
Hue49° of 360°
Saturation72%
Lightness40%
Temperature
Warm ← → Cool16% 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#af951c
RGBrgb(175, 149, 28)
HSLhsl(49, 72%, 40%)
CMYKcmyk(0%, 15%, 84%, 31%)
LABlab(62.3 -2.1 60.9)
LCHlch(62.3 61.0 92.0)
OKLCHoklch(0.674 0.131 95.7)
Decimal11506972
Display P3color(display-p3 0.686 0.584 0.110)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af951c on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#af951c on black: 7.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A69200
deuteranopia · #AC9A26
tritanopia · #BE887F

Color scale — 50 to 950

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

#FCFAF3
#F8F5E7
#F3ECC9
#F0E19E
#E8D26E
#E0C33E
#D3B422
#af951c
#8D7817
#665814
#40370D
Base = 700Lightest = 50 · #FCFAF3Darkest = 950 · #40370D
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F8F5E7;
  --brand-200: #F3ECC9;
  --brand-300: #F0E19E;
  --brand-400: #E8D26E;
  --brand-500: #E0C33E;
  --brand-600: #D3B422;
  --brand-700: #af951c;
  --brand-800: #8D7817;
  --brand-900: #665814;
  --brand-950: #40370D;
  --brand: #af951c;
  --brand-ink: #000000;
}

Colors that work with #af951c

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#9B8D4B
Captions on the surface
Accent#185AB3
Second voice, not a rival
Dark variant#6E5E12
Hover, pressed, headers
Light variant#FBF8E9
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 #af951c

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#1C36AF
Analogous left#AF4C1C
Analogous right#7FAF1C
Split-complement 1#1C7FAF
Split-complement 2#4C1CAF
Triadic 1#1CAF95
Triadic 2#951CAF
Tetradic#1CAF4C

RGB percentages

Red68.6%
Green58.4%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta14.9%
Yellow84.0%
Key (black)31.4%

Color previews

#af951c text on a black background

contrast 7.14:1

Card sample

#af951c text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af951c

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.

#af951c 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

Converts to four-color process without much drama. Proof it anyway.

#af951c, answered

What color is #af951c?

#af951c is a dark vivid yellow, closest to Dark Goldenrod (ΔE2000 8.1). It sits at 49° on the hue wheel with 72% saturation and 40% lightness, which reads as warm.

What is the RGB value of #af951c?

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

Is #af951c a light or a dark color?

It is a mid-tone. Relative luminance is 0.3069 and perceived brightness is 59%, so black text on it reaches 7.14:1.

Should I use black or white text on #af951c?

Black. It scores 7.14:1 against #af951c, versus 2.94:1 for white — AAA at any size.

What is the complementary color of #af951c?

#1C36AF sits directly opposite on the wheel. Softer options are the split-complements #1C7FAF and #4C1CAF, which give the same contrast with far less vibration.

What colors go well with #af951c?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8D4B for secondary text, #185AB3 as an accent and #6E5E12 for hover and pressed states. For a palette, the analogous pair #AF4C1C and #7FAF1C stays calm, while #1C36AF is the loudest partner.

What is #af951c in CMYK for printing?

cmyk(0%, 15%, 84%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af951c warm or cool?

Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF711C; nudged cooler, #94B11A.

Work with #af951c in the Color Lab