Skip to content

#d8cd73

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

RGB
216, 205, 115
HSL
54°, 56%, 65%
CMYK
0, 5, 47, 15
Luminance
0.5950

At a glance

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

Hex
#d8cd73
Hue
54°
yellow
Saturation
56%
vivid
Lightness
65%
balanced
Brightness
85%
HSV value
Perceived
79%
weighted brightness
Luminance
0.5950
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.90:1
Closest name
Khaki
ΔE2000 5.7
Where it sits
Hue54° of 360°
Saturation56%
Lightness65%
Temperature
Warm ← → Cool20% 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#d8cd73
RGBrgb(216, 205, 115)
HSLhsl(54, 56%, 65%)
CMYKcmyk(0%, 5%, 47%, 15%)
LABlab(81.6 -8.4 45.9)
LCHlch(81.6 46.7 100.3)
OKLCHoklch(0.838 0.113 102.3)
Decimal14208371
Display P3color(display-p3 0.847 0.804 0.451)

Copy-ready code

/* CSS */
color: #d8cd73;
background-color: #d8cd73;
/* Tailwind (arbitrary) */
class="text-[#d8cd73] bg-[#d8cd73]"
/* SCSS */
$brand: #d8cd73;
/* SwiftUI */
Color(red: 0.847, green: 0.804, blue: 0.451)
/* Android */
Color.parseColor("#d8cd73")
/* Flutter */
Color(0xFFD8CD73)
/* Python / OpenCV (BGR) */
(115, 205, 216)

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

Accessibility — WCAG contrast

Aa
#d8cd73 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#d8cd73 on black: 12.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DCC86B
deuteranopia · #DFCD77
tritanopia · #E5C2B8

Color scale — 50 to 950

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

#FBFAF4
#F6F5E9
#EEEBCD
#E7E0A7
#d8cd73
#CEC050
#BFB035
#A0932C
#807624
#5D561D
#3A3612
Base = 400Lightest = 50 · #FBFAF4Darkest = 950 · #3A3612
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F6F5E9;
  --brand-200: #EEEBCD;
  --brand-300: #E7E0A7;
  --brand-400: #d8cd73;
  --brand-500: #CEC050;
  --brand-600: #BFB035;
  --brand-700: #A0932C;
  --brand-800: #807624;
  --brand-900: #5D561D;
  --brand-950: #3A3612;
  --brand: #d8cd73;
  --brand-ink: #000000;
}

Colors that work with #d8cd73

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#FAFAF4
Tinted page background
Border#EDE8C0
Hairlines and dividers
Muted text#9B924B
Captions on the surface
Accent#2854A4
Second voice, not a rival
Dark variant#645C1C
Hover, pressed, headers
Light variant#F9F8EB
Selected rows, tints
Dark surface#242314
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 #d8cd73

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#737ED8
Analogous left#D89B73
Analogous right#B0D873
Split-complement 1#73B0D8
Split-complement 2#9B73D8
Triadic 1#73D8CD
Triadic 2#CD73D8
Tetradic#73D89B

RGB percentages

Red84.7%
Green80.4%
Blue45.1%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow46.8%
Key (black)15.3%

Color previews

#d8cd73 text on a black background

contrast 12.90:1

Card sample

#d8cd73 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(216, 205, 115, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(216, 205, 115, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d8cd73;
background: linear-gradient(135deg, #d8cd73, #A0D873);

Monochromatic scale

Palettes built from #d8cd73

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.

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

#d8cd73, answered

What color is #d8cd73?

#d8cd73 is a balanced vivid yellow, closest to Khaki (ΔE2000 5.7). It sits at 54° on the hue wheel with 56% saturation and 65% lightness, which reads as warm.

What is the RGB value of #d8cd73?

rgb(216, 205, 115) — 216 red, 205 green and 115 blue out of 255, or 84.7% / 80.4% / 45.1% by channel.

Is #d8cd73 a light or a dark color?

It is a light color. Relative luminance is 0.5950 and perceived brightness is 79%, so black text on it reaches 12.90:1.

Should I use black or white text on #d8cd73?

Black. It scores 12.90:1 against #d8cd73, versus 1.63:1 for white — AAA at any size.

What is the complementary color of #d8cd73?

#737ED8 sits directly opposite on the wheel. Softer options are the split-complements #73B0D8 and #9B73D8, which give the same contrast with far less vibration.

What colors go well with #d8cd73?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B924B for secondary text, #2854A4 as an accent and #645C1C for hover and pressed states. For a palette, the analogous pair #D89B73 and #B0D873 stays calm, while #737ED8 is the loudest partner.

What is #d8cd73 in CMYK for printing?

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

Is #d8cd73 warm or cool?

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

Work with #d8cd73 in the Color Lab