Skip to content

#d7ab39

a balanced, vivid yellow · warm · closest name: Goldenrod

RGB
215, 171, 57
HSL
43°, 66%, 53%
CMYK
0, 21, 74, 16
Luminance
0.4387

At a glance

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

Hex
#d7ab39
Hue
43°
yellow
Saturation
66%
vivid
Lightness
53%
balanced
Brightness
84%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4387
WCAG relative
Temperature
Warm
11/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.77:1
Closest name
Goldenrod
ΔE2000 2.8
Where it sits
Hue43° of 360°
Saturation66%
Lightness53%
Temperature
Warm ← → Cool11% 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#d7ab39
RGBrgb(215, 171, 57)
HSLhsl(43, 66%, 53%)
CMYKcmyk(0%, 21%, 74%, 16%)
LABlab(72.1 4.9 61.6)
LCHlch(72.1 61.8 85.5)
OKLCHoklch(0.762 0.136 86.8)
Decimal14134073
Display P3color(display-p3 0.843 0.671 0.224)

Copy-ready code

/* CSS */
color: #d7ab39;
background-color: #d7ab39;
/* Tailwind (arbitrary) */
class="text-[#d7ab39] bg-[#d7ab39]"
/* SCSS */
$brand: #d7ab39;
/* SwiftUI */
Color(red: 0.843, green: 0.671, blue: 0.224)
/* Android */
Color.parseColor("#d7ab39")
/* Flutter */
Color(0xFFD7AB39)
/* Python / OpenCV (BGR) */
(57, 171, 215)

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 #d7ab39 · 9.77:1
Use #000000AAA at every size.
Aa
White text · 2.15:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.77:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d7ab39 as text scores 2.15:1 on white and 9.77:1 on black.

Accessibility — WCAG contrast

Aa
#d7ab39 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#d7ab39 on black: 9.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BFAA28
deuteranopia · #CAB63F
tritanopia · #E99C94

Color scale — 50 to 950

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

#FBF9F3
#F8F3E8
#F1E6CA
#ECD7A2
#E3C473
#d7ab39
#CC9E29
#AA8422
#886A1B
#634E18
#3E310F
Base = 500Lightest = 50 · #FBF9F3Darkest = 950 · #3E310F
:root {
  --brand-50: #FBF9F3;
  --brand-100: #F8F3E8;
  --brand-200: #F1E6CA;
  --brand-300: #ECD7A2;
  --brand-400: #E3C473;
  --brand-500: #d7ab39;
  --brand-600: #CC9E29;
  --brand-700: #AA8422;
  --brand-800: #886A1B;
  --brand-900: #634E18;
  --brand-950: #3E310F;
  --brand: #d7ab39;
  --brand-ink: #000000;
}

Colors that work with #d7ab39

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#EDE0C0
Hairlines and dividers
Muted text#9B854B
Captions on the surface
Accent#348DDC
Second voice, not a rival
Dark variant#6A5315
Hover, pressed, headers
Light variant#FBF6EA
Selected rows, tints
Dark surface#242014
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 #d7ab39

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
  • 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
  • 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#3965D7
Analogous left#D75C39
Analogous right#B4D739
Split-complement 1#39B4D7
Split-complement 2#5C39D7
Triadic 1#39D7AB
Triadic 2#AB39D7
Tetradic#39D75C

RGB percentages

Red84.3%
Green67.1%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta20.5%
Yellow73.5%
Key (black)15.7%

Color previews

#d7ab39 text on a black background

contrast 9.77:1

Card sample

#d7ab39 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 171, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 171, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7ab39;
background: linear-gradient(135deg, #d7ab39, #9AD739);

Monochromatic scale

Palettes built from #d7ab39

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.

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

#d7ab39, answered

What color is #d7ab39?

#d7ab39 is a balanced vivid yellow, closest to Goldenrod (ΔE2000 2.8). It sits at 43° on the hue wheel with 66% saturation and 53% lightness, which reads as warm.

What is the RGB value of #d7ab39?

rgb(215, 171, 57) — 215 red, 171 green and 57 blue out of 255, or 84.3% / 67.1% / 22.4% by channel.

Is #d7ab39 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4387 and perceived brightness is 69%, so black text on it reaches 9.77:1.

Should I use black or white text on #d7ab39?

Black. It scores 9.77:1 against #d7ab39, versus 2.15:1 for white — AAA at any size.

What is the complementary color of #d7ab39?

#3965D7 sits directly opposite on the wheel. Softer options are the split-complements #39B4D7 and #5C39D7, which give the same contrast with far less vibration.

What colors go well with #d7ab39?

For interface work: #FAF9F4 as the surface, #EDE0C0 for borders, #9B854B for secondary text, #348DDC as an accent and #6A5315 for hover and pressed states. For a palette, the analogous pair #D75C39 and #B4D739 stays calm, while #3965D7 is the loudest partner.

What is #d7ab39 in CMYK for printing?

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

Is #d7ab39 warm or cool?

Warm — it scores 11 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D78F39; nudged cooler, #CBD936.

Work with #d7ab39 in the Color Lab