Skip to content

#d2ba4d

a balanced, vivid yellow · warm · closest name: Dark Khaki

RGB
210, 186, 77
HSL
49°, 60%, 56%
CMYK
0, 11, 63, 18
Luminance
0.4936

At a glance

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

Hex
#d2ba4d
Hue
49°
yellow
Saturation
60%
vivid
Lightness
56%
balanced
Brightness
82%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4936
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.87:1
Closest name
Dark Khaki
ΔE2000 7.2
Where it sits
Hue49° of 360°
Saturation60%
Lightness56%
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#d2ba4d
RGBrgb(210, 186, 77)
HSLhsl(49, 60%, 56%)
CMYKcmyk(0%, 11%, 63%, 18%)
LABlab(75.7 -4.1 56.8)
LCHlch(75.7 56.9 94.1)
OKLCHoklch(0.789 0.130 96.8)
Decimal13810253
Display P3color(display-p3 0.824 0.729 0.302)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ba4d on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#d2ba4d on black: 10.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CBB640
deuteranopia · #D2BE52
tritanopia · #E2ADA3

Color scale — 50 to 950

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

#FBFAF4
#F7F4E9
#EFE9CC
#E8DCA5
#DDCB79
#d2ba4d
#C3A931
#A38D29
#827121
#5F531C
#3B3411
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3B3411
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F4E9;
  --brand-200: #EFE9CC;
  --brand-300: #E8DCA5;
  --brand-400: #DDCB79;
  --brand-500: #d2ba4d;
  --brand-600: #C3A931;
  --brand-700: #A38D29;
  --brand-800: #827121;
  --brand-900: #5F531C;
  --brand-950: #3B3411;
  --brand: #d2ba4d;
  --brand-ink: #000000;
}

Colors that work with #d2ba4d

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#9B8C4B
Captions on the surface
Accent#4986D6
Second voice, not a rival
Dark variant#66581A
Hover, pressed, headers
Light variant#FAF7EB
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 #d2ba4d

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#4D65D2
Analogous left#D2784D
Analogous right#A7D24D
Split-complement 1#4DA7D2
Split-complement 2#784DD2
Triadic 1#4DD2BA
Triadic 2#BA4DD2
Tetradic#4DD278

RGB percentages

Red82.4%
Green72.9%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta11.4%
Yellow63.3%
Key (black)17.6%

Color previews

#d2ba4d text on a black background

contrast 10.87:1

Card sample

#d2ba4d text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 186, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 186, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2ba4d;
background: linear-gradient(135deg, #d2ba4d, #91D24D);

Monochromatic scale

Palettes built from #d2ba4d

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.

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

#d2ba4d, answered

What color is #d2ba4d?

#d2ba4d is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7.2). It sits at 49° on the hue wheel with 60% saturation and 56% lightness, which reads as warm.

What is the RGB value of #d2ba4d?

rgb(210, 186, 77) — 210 red, 186 green and 77 blue out of 255, or 82.4% / 72.9% / 30.2% by channel.

Is #d2ba4d a light or a dark color?

It is a mid-tone. Relative luminance is 0.4936 and perceived brightness is 72%, so black text on it reaches 10.87:1.

Should I use black or white text on #d2ba4d?

Black. It scores 10.87:1 against #d2ba4d, versus 1.93:1 for white — AAA at any size.

What is the complementary color of #d2ba4d?

#4D65D2 sits directly opposite on the wheel. Softer options are the split-complements #4DA7D2 and #784DD2, which give the same contrast with far less vibration.

What colors go well with #d2ba4d?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8C4B for secondary text, #4986D6 as an accent and #66581A for hover and pressed states. For a palette, the analogous pair #D2784D and #A7D24D stays calm, while #4D65D2 is the loudest partner.

What is #d2ba4d in CMYK for printing?

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

Is #d2ba4d 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 #D2994D; nudged cooler, #BBD44B.

Work with #d2ba4d in the Color Lab