Skip to content

#d4cd7c

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

RGB
212, 205, 124
HSL
55°, 51%, 66%
CMYK
0, 3, 42, 17
Luminance
0.5911

At a glance

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

Hex
#d4cd7c
Hue
55°
yellow
Saturation
51%
vivid
Lightness
66%
light
Brightness
83%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5911
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.82:1
Closest name
Dark Khaki
ΔE2000 5.7
Where it sits
Hue55° of 360°
Saturation51%
Lightness66%
Temperature
Warm ← → Cool21% 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#d4cd7c
RGBrgb(212, 205, 124)
HSLhsl(55, 51%, 66%)
CMYKcmyk(0%, 3%, 42%, 17%)
LABlab(81.4 -9.1 41.1)
LCHlch(81.4 42.1 102.4)
OKLCHoklch(0.836 0.103 104.1)
Decimal13946236
Display P3color(display-p3 0.831 0.804 0.486)

Copy-ready code

/* CSS */
color: #d4cd7c;
background-color: #d4cd7c;
/* Tailwind (arbitrary) */
class="text-[#d4cd7c] bg-[#d4cd7c]"
/* SCSS */
$brand: #d4cd7c;
/* SwiftUI */
Color(red: 0.831, green: 0.804, blue: 0.486)
/* Android */
Color.parseColor("#d4cd7c")
/* Flutter */
Color(0xFFD4CD7C)
/* Python / OpenCV (BGR) */
(124, 205, 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 #d4cd7c · 12.82:1
Use #000000AAA at every size.
Aa
White text · 1.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.82:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d4cd7c as text scores 1.64:1 on white and 12.82:1 on black.

Accessibility — WCAG contrast

Aa
#d4cd7c on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d4cd7c on black: 12.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DAC876
deuteranopia · #DDCC7F
tritanopia · #E0C3B9

Color scale — 50 to 950

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

#FAFAF4
#F6F5EA
#EDEACF
#E3DFAB
#d4cd7c
#C8BE56
#B8AE3C
#9A9132
#7B7428
#5A5521
#383514
Base = 400Lightest = 50 · #FAFAF4Darkest = 950 · #383514
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F6F5EA;
  --brand-200: #EDEACF;
  --brand-300: #E3DFAB;
  --brand-400: #d4cd7c;
  --brand-500: #C8BE56;
  --brand-600: #B8AE3C;
  --brand-700: #9A9132;
  --brand-800: #7B7428;
  --brand-900: #5A5521;
  --brand-950: #383514;
  --brand: #d4cd7c;
  --brand-ink: #000000;
}

Colors that work with #d4cd7c

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#EBE8C2
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#2E539E
Second voice, not a rival
Dark variant#605B1F
Hover, pressed, headers
Light variant#F9F8EC
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 #d4cd7c

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
  • Card and section backgrounds
  • 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
  • White 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#7C83D4
Analogous left#D4A17C
Analogous right#AFD47C
Split-complement 1#7CAFD4
Split-complement 2#A17CD4
Triadic 1#7CD4CD
Triadic 2#CD7CD4
Tetradic#7CD4A1

RGB percentages

Red83.1%
Green80.4%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta3.3%
Yellow41.5%
Key (black)16.9%

Color previews

#d4cd7c text on a black background

contrast 12.82:1

Card sample

#d4cd7c text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4cd7c

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.

#d4cd7c 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#d4cd7c, answered

What color is #d4cd7c?

#d4cd7c is a light vivid yellow, closest to Dark Khaki (ΔE2000 5.7). It sits at 55° on the hue wheel with 51% saturation and 66% lightness, which reads as warm.

What is the RGB value of #d4cd7c?

rgb(212, 205, 124) — 212 red, 205 green and 124 blue out of 255, or 83.1% / 80.4% / 48.6% by channel.

Is #d4cd7c a light or a dark color?

It is a light color. Relative luminance is 0.5911 and perceived brightness is 78%, so black text on it reaches 12.82:1.

Should I use black or white text on #d4cd7c?

Black. It scores 12.82:1 against #d4cd7c, versus 1.64:1 for white — AAA at any size.

What is the complementary color of #d4cd7c?

#7C83D4 sits directly opposite on the wheel. Softer options are the split-complements #7CAFD4 and #A17CD4, which give the same contrast with far less vibration.

What colors go well with #d4cd7c?

For interface work: #FAFAF4 as the surface, #EBE8C2 for borders, #9B944B for secondary text, #2E539E as an accent and #605B1F for hover and pressed states. For a palette, the analogous pair #D4A17C and #AFD47C stays calm, while #7C83D4 is the loudest partner.

What is #d4cd7c in CMYK for printing?

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

Is #d4cd7c warm or cool?

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

Work with #d4cd7c in the Color Lab