Skip to content

#cdc87f

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

RGB
205, 200, 127
HSL
56°, 44%, 65%
CMYK
0, 2, 38, 20
Luminance
0.5582

At a glance

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

Hex
#cdc87f
Hue
56°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5582
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.16:1
Closest name
Dark Khaki
ΔE2000 4.5
Where it sits
Hue56° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool22% 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#cdc87f
RGBrgb(205, 200, 127)
HSLhsl(56, 44%, 65%)
CMYKcmyk(0%, 2%, 38%, 20%)
LABlab(79.5 -9.0 37.1)
LCHlch(79.5 38.2 103.6)
OKLCHoklch(0.820 0.094 104.9)
Decimal13486207
Display P3color(display-p3 0.804 0.784 0.498)

Copy-ready code

/* CSS */
color: #cdc87f;
background-color: #cdc87f;
/* Tailwind (arbitrary) */
class="text-[#cdc87f] bg-[#cdc87f]"
/* SCSS */
$brand: #cdc87f;
/* SwiftUI */
Color(red: 0.804, green: 0.784, blue: 0.498)
/* Android */
Color.parseColor("#cdc87f")
/* Flutter */
Color(0xFFCDC87F)
/* Python / OpenCV (BGR) */
(127, 200, 205)

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

Accessibility — WCAG contrast

Aa
#cdc87f on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#cdc87f on black: 12.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D4C37A
deuteranopia · #D6C782
tritanopia · #D8BFB6

Color scale — 50 to 950

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

#FAFAF5
#F5F4EA
#EBE9D1
#DFDCAE
#cdc87f
#C0BA5E
#B0A945
#938D39
#75712E
#565325
#363417
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #363417
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F4EA;
  --brand-200: #EBE9D1;
  --brand-300: #DFDCAE;
  --brand-400: #cdc87f;
  --brand-500: #C0BA5E;
  --brand-600: #B0A945;
  --brand-700: #938D39;
  --brand-800: #75712E;
  --brand-900: #565325;
  --brand-950: #363417;
  --brand: #cdc87f;
  --brand-ink: #000000;
}

Colors that work with #cdc87f

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#E8E6C4
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#355497
Second voice, not a rival
Dark variant#5C5824
Hover, pressed, headers
Light variant#F8F7ED
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 #cdc87f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#7F84CD
Analogous left#CDA17F
Analogous right#ABCD7F
Split-complement 1#7FABCD
Split-complement 2#A17FCD
Triadic 1#7FCDC8
Triadic 2#C87FCD
Tetradic#7FCDA1

RGB percentages

Red80.4%
Green78.4%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow38.0%
Key (black)19.6%

Color previews

#cdc87f text on a black background

contrast 12.16:1

Card sample

#cdc87f text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 200, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 200, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdc87f;
background: linear-gradient(135deg, #cdc87f, #9ECD7F);

Monochromatic scale

Palettes built from #cdc87f

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.

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

#cdc87f, answered

What color is #cdc87f?

#cdc87f is a light soft yellow, closest to Dark Khaki (ΔE2000 4.5). It sits at 56° on the hue wheel with 44% saturation and 65% lightness, which reads as warm.

What is the RGB value of #cdc87f?

rgb(205, 200, 127) — 205 red, 200 green and 127 blue out of 255, or 80.4% / 78.4% / 49.8% by channel.

Is #cdc87f a light or a dark color?

It is a light color. Relative luminance is 0.5582 and perceived brightness is 76%, so black text on it reaches 12.16:1.

Should I use black or white text on #cdc87f?

Black. It scores 12.16:1 against #cdc87f, versus 1.73:1 for white — AAA at any size.

What is the complementary color of #cdc87f?

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

What colors go well with #cdc87f?

For interface work: #FAFAF4 as the surface, #E8E6C4 for borders, #9B964B for secondary text, #355497 as an accent and #5C5824 for hover and pressed states. For a palette, the analogous pair #CDA17F and #ABCD7F stays calm, while #7F84CD is the loudest partner.

What is #cdc87f in CMYK for printing?

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

Is #cdc87f warm or cool?

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

Work with #cdc87f in the Color Lab