Skip to content

#d8cd4f

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

RGB
216, 205, 79
HSL
55°, 64%, 58%
CMYK
0, 5, 63, 15
Luminance
0.5883

At a glance

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

Hex
#d8cd4f
Hue
55°
yellow
Saturation
64%
vivid
Lightness
58%
balanced
Brightness
85%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5883
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.77:1
Closest name
Khaki
ΔE2000 7.8
Where it sits
Hue55° of 360°
Saturation64%
Lightness58%
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#d8cd4f
RGBrgb(216, 205, 79)
HSLhsl(55, 64%, 58%)
CMYKcmyk(0%, 5%, 63%, 15%)
LABlab(81.2 -11.2 62.0)
LCHlch(81.2 63.0 100.2)
OKLCHoklch(0.834 0.145 104.3)
Decimal14208335
Display P3color(display-p3 0.847 0.804 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8cd4f on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#d8cd4f on black: 12.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DEC63F
deuteranopia · #E2CC56
tritanopia · #E7C0B3

Color scale — 50 to 950

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

#FBFBF4
#F7F6E8
#F0EDCB
#EBE5A3
#E0D875
#d8cd4f
#C8BC2C
#A79D25
#867D1E
#615B19
#3D3910
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3D3910
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E8;
  --brand-200: #F0EDCB;
  --brand-300: #EBE5A3;
  --brand-400: #E0D875;
  --brand-500: #d8cd4f;
  --brand-600: #C8BC2C;
  --brand-700: #A79D25;
  --brand-800: #867D1E;
  --brand-900: #615B19;
  --brand-950: #3D3910;
  --brand: #d8cd4f;
  --brand-ink: #000000;
}

Colors that work with #d8cd4f

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#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#4B7BDC
Second voice, not a rival
Dark variant#686217
Hover, pressed, headers
Light variant#FAF9EA
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 #d8cd4f

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#4F5AD8
Analogous left#D8884F
Analogous right#9ED84F
Split-complement 1#4F9ED8
Split-complement 2#884FD8
Triadic 1#4FD8CD
Triadic 2#CD4FD8
Tetradic#4FD888

RGB percentages

Red84.7%
Green80.4%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow63.4%
Key (black)15.3%

Color previews

#d8cd4f text on a black background

contrast 12.77:1

Card sample

#d8cd4f text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d8cd4f

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.

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

#d8cd4f, answered

What color is #d8cd4f?

#d8cd4f is a balanced vivid yellow, closest to Khaki (ΔE2000 7.8). It sits at 55° on the hue wheel with 64% saturation and 58% lightness, which reads as warm.

What is the RGB value of #d8cd4f?

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

Is #d8cd4f a light or a dark color?

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

Should I use black or white text on #d8cd4f?

Black. It scores 12.77:1 against #d8cd4f, versus 1.65:1 for white — AAA at any size.

What is the complementary color of #d8cd4f?

#4F5AD8 sits directly opposite on the wheel. Softer options are the split-complements #4F9ED8 and #884FD8, which give the same contrast with far less vibration.

What colors go well with #d8cd4f?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #4B7BDC as an accent and #686217 for hover and pressed states. For a palette, the analogous pair #D8884F and #9ED84F stays calm, while #4F5AD8 is the loudest partner.

What is #d8cd4f in CMYK for printing?

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

Is #d8cd4f 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 #D8A24F; nudged cooler, #B2DA4D.

Work with #d8cd4f in the Color Lab