Skip to content

#d4a310

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

RGB
212, 163, 16
HSL
45°, 86%, 45%
CMYK
0, 23, 93, 17
Luminance
0.4023

At a glance

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

Hex
#d4a310
Hue
45°
yellow
Saturation
86%
electric
Lightness
45%
dark
Brightness
83%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4023
WCAG relative
Temperature
Warm
13/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.05:1
Closest name
Goldenrod
ΔE2000 1.7
Where it sits
Hue45° of 360°
Saturation86%
Lightness45%
Temperature
Warm ← → Cool13% 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#d4a310
RGBrgb(212, 163, 16)
HSLhsl(45, 86%, 45%)
CMYKcmyk(0%, 23%, 93%, 17%)
LABlab(69.6 6.7 71.0)
LCHlch(69.6 71.3 84.6)
OKLCHoklch(0.741 0.149 86.4)
Decimal13935376
Display P3color(display-p3 0.831 0.639 0.063)

Copy-ready code

/* CSS */
color: #d4a310;
background-color: #d4a310;
/* Tailwind (arbitrary) */
class="text-[#d4a310] bg-[#d4a310]"
/* SCSS */
$brand: #d4a310;
/* SwiftUI */
Color(red: 0.831, green: 0.639, blue: 0.063)
/* Android */
Color.parseColor("#d4a310")
/* Flutter */
Color(0xFFD4A310)
/* Python / OpenCV (BGR) */
(16, 163, 212)

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

Accessibility — WCAG contrast

Aa
#d4a310 on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#d4a310 on black: 9.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A300
deuteranopia · #C5AF1E
tritanopia · #E7938B

Color scale — 50 to 950

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

#FDFAF2
#FAF5E5
#F7EAC5
#F7DF97
#F3CF62
#EFBF2E
#d4a310
#BE920E
#98750B
#6E550D
#453508
Base = 600Lightest = 50 · #FDFAF2Darkest = 950 · #453508
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FAF5E5;
  --brand-200: #F7EAC5;
  --brand-300: #F7DF97;
  --brand-400: #F3CF62;
  --brand-500: #EFBF2E;
  --brand-600: #d4a310;
  --brand-700: #BE920E;
  --brand-800: #98750B;
  --brand-900: #6E550D;
  --brand-950: #453508;
  --brand: #d4a310;
  --brand-ink: #000000;
}

Colors that work with #d4a310

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#EDE1C0
Hairlines and dividers
Muted text#9B874B
Captions on the surface
Accent#0B72D9
Second voice, not a rival
Dark variant#775B09
Hover, pressed, headers
Light variant#FDF8E7
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 #d4a310

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#1041D4
Analogous left#D44110
Analogous right#A3D410
Split-complement 1#10A3D4
Split-complement 2#4110D4
Triadic 1#10D4A3
Triadic 2#A310D4
Tetradic#10D441

RGB percentages

Red83.1%
Green63.9%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta23.1%
Yellow92.5%
Key (black)16.9%

Color previews

#d4a310 text on a black background

contrast 9.05:1

Card sample

#d4a310 text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 163, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 163, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4a310;
background: linear-gradient(135deg, #d4a310, #82D410);

Monochromatic scale

Palettes built from #d4a310

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.

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

#d4a310, answered

What color is #d4a310?

#d4a310 is a dark electric yellow, closest to Goldenrod (ΔE2000 1.7). It sits at 45° on the hue wheel with 86% saturation and 45% lightness, which reads as warm.

What is the RGB value of #d4a310?

rgb(212, 163, 16) — 212 red, 163 green and 16 blue out of 255, or 83.1% / 63.9% / 6.3% by channel.

Is #d4a310 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4023 and perceived brightness is 67%, so black text on it reaches 9.05:1.

Should I use black or white text on #d4a310?

Black. It scores 9.05:1 against #d4a310, versus 2.32:1 for white — AAA at any size.

What is the complementary color of #d4a310?

#1041D4 sits directly opposite on the wheel. Softer options are the split-complements #10A3D4 and #4110D4, which give the same contrast with far less vibration.

What colors go well with #d4a310?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B874B for secondary text, #0B72D9 as an accent and #775B09 for hover and pressed states. For a palette, the analogous pair #D44110 and #A3D410 stays calm, while #1041D4 is the loudest partner.

What is #d4a310 in CMYK for printing?

cmyk(0%, 23%, 93%, 17%). 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 #d4a310 warm or cool?

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

Work with #d4a310 in the Color Lab