Skip to content

#d2a310

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

RGB
210, 163, 16
HSL
46°, 86%, 44%
CMYK
0, 22, 92, 18
Luminance
0.3993

At a glance

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

Hex
#d2a310
Hue
46°
yellow
Saturation
86%
electric
Lightness
44%
dark
Brightness
82%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3993
WCAG relative
Temperature
Warm
13/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.99:1
Closest name
Goldenrod
ΔE2000 2.2
Where it sits
Hue46° of 360°
Saturation86%
Lightness44%
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#d2a310
RGBrgb(210, 163, 16)
HSLhsl(46, 86%, 44%)
CMYKcmyk(0%, 22%, 92%, 18%)
LABlab(69.4 5.8 70.7)
LCHlch(69.4 71.0 85.3)
OKLCHoklch(0.739 0.148 87.3)
Decimal13804304
Display P3color(display-p3 0.824 0.639 0.063)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#d2a310 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#d2a310 on black: 8.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A200
deuteranopia · #C4AF1E
tritanopia · #E5938B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d2a310 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
#F7EBC5
#F7E097
#F3D063
#EFC12F
#d2a310
#BE930E
#98760C
#6E560D
#443608
Base = 600Lightest = 50 · #FDFAF2Darkest = 950 · #443608
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FAF5E5;
  --brand-200: #F7EBC5;
  --brand-300: #F7E097;
  --brand-400: #F3D063;
  --brand-500: #EFC12F;
  --brand-600: #d2a310;
  --brand-700: #BE930E;
  --brand-800: #98760C;
  --brand-900: #6E560D;
  --brand-950: #443608;
  --brand: #d2a310;
  --brand-ink: #000000;
}

Colors that work with #d2a310

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#EDE2C0
Hairlines and dividers
Muted text#9B884B
Captions on the surface
Accent#0C6FD6
Second voice, not a rival
Dark variant#765C09
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 #d2a310

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#103FD2
Analogous left#D24210
Analogous right#A0D210
Split-complement 1#10A0D2
Split-complement 2#4210D2
Triadic 1#10D2A3
Triadic 2#A310D2
Tetradic#10D242

RGB percentages

Red82.4%
Green63.9%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta22.4%
Yellow92.4%
Key (black)17.6%

Color previews

#d2a310 text on a black background

contrast 8.99:1

Card sample

#d2a310 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2a310

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.

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

#d2a310, answered

What color is #d2a310?

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

What is the RGB value of #d2a310?

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

Is #d2a310 a light or a dark color?

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

Should I use black or white text on #d2a310?

Black. It scores 8.99:1 against #d2a310, versus 2.34:1 for white — AAA at any size.

What is the complementary color of #d2a310?

#103FD2 sits directly opposite on the wheel. Softer options are the split-complements #10A0D2 and #4210D2, which give the same contrast with far less vibration.

What colors go well with #d2a310?

For interface work: #FAF9F4 as the surface, #EDE2C0 for borders, #9B884B for secondary text, #0C6FD6 as an accent and #765C09 for hover and pressed states. For a palette, the analogous pair #D24210 and #A0D210 stays calm, while #103FD2 is the loudest partner.

What is #d2a310 in CMYK for printing?

cmyk(0%, 22%, 92%, 18%). 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 #d2a310 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 #D28010; nudged cooler, #BBD40E.

Work with #d2a310 in the Color Lab