Skip to content

#d8c255

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

RGB
216, 194, 85
HSL
50°, 63%, 59%
CMYK
0, 10, 61, 15
Luminance
0.5384

At a glance

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

Hex
#d8c255
Hue
50°
yellow
Saturation
63%
vivid
Lightness
59%
balanced
Brightness
85%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5384
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.77:1
Closest name
Dark Khaki
ΔE2000 7.5
Where it sits
Hue50° of 360°
Saturation63%
Lightness59%
Temperature
Warm ← → Cool17% 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#d8c255
RGBrgb(216, 194, 85)
HSLhsl(50, 63%, 59%)
CMYKcmyk(0%, 10%, 61%, 15%)
LABlab(78.4 -5.2 56.3)
LCHlch(78.4 56.5 95.2)
OKLCHoklch(0.812 0.131 98.0)
Decimal14205525
Display P3color(display-p3 0.847 0.761 0.333)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8c255 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#d8c255 on black: 11.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D3BD49
deuteranopia · #D9C55A
tritanopia · #E8B5AA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d8c255 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
#F7F5E8
#F0EACC
#EADEA4
#E0CE76
#d8c255
#C7AD2E
#A69026
#85741E
#61551A
#3C3510
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3C3510
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F5E8;
  --brand-200: #F0EACC;
  --brand-300: #EADEA4;
  --brand-400: #E0CE76;
  --brand-500: #d8c255;
  --brand-600: #C7AD2E;
  --brand-700: #A69026;
  --brand-800: #85741E;
  --brand-900: #61551A;
  --brand-950: #3C3510;
  --brand: #d8c255;
  --brand-ink: #000000;
}

Colors that work with #d8c255

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#9B8D4B
Captions on the surface
Accent#518BDC
Second voice, not a rival
Dark variant#685A18
Hover, pressed, headers
Light variant#FAF8EA
Selected rows, tints
Dark surface#242214
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 #d8c255

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#556BD8
Analogous left#D88055
Analogous right#ADD855
Split-complement 1#55ADD8
Split-complement 2#8055D8
Triadic 1#55D8C2
Triadic 2#C255D8
Tetradic#55D880

RGB percentages

Red84.7%
Green76.1%
Blue33.3%

CMYK percentages

Cyan0.0%
Magenta10.2%
Yellow60.6%
Key (black)15.3%

Color previews

#d8c255 text on a black background

contrast 11.77:1

Card sample

#d8c255 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(216, 194, 85, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(216, 194, 85, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d8c255;
background: linear-gradient(135deg, #d8c255, #97D855);

Monochromatic scale

Palettes built from #d8c255

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.

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

#d8c255, answered

What color is #d8c255?

#d8c255 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7.5). It sits at 50° on the hue wheel with 63% saturation and 59% lightness, which reads as warm.

What is the RGB value of #d8c255?

rgb(216, 194, 85) — 216 red, 194 green and 85 blue out of 255, or 84.7% / 76.1% / 33.3% by channel.

Is #d8c255 a light or a dark color?

It is a light color. Relative luminance is 0.5384 and perceived brightness is 75%, so black text on it reaches 11.77:1.

Should I use black or white text on #d8c255?

Black. It scores 11.77:1 against #d8c255, versus 1.78:1 for white — AAA at any size.

What is the complementary color of #d8c255?

#556BD8 sits directly opposite on the wheel. Softer options are the split-complements #55ADD8 and #8055D8, which give the same contrast with far less vibration.

What colors go well with #d8c255?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8D4B for secondary text, #518BDC as an accent and #685A18 for hover and pressed states. For a palette, the analogous pair #D88055 and #ADD855 stays calm, while #556BD8 is the loudest partner.

What is #d8c255 in CMYK for printing?

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

Is #d8c255 warm or cool?

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

Work with #d8c255 in the Color Lab