Skip to content

#cdb97f

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

RGB
205, 185, 127
HSL
45°, 44%, 65%
CMYK
0, 10, 38, 20
Luminance
0.4921

At a glance

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

Hex
#cdb97f
Hue
45°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
73%
weighted brightness
Luminance
0.4921
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
10.84:1
Closest name
Dark Khaki
ΔE2000 6
Where it sits
Hue45° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool12% 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#cdb97f
RGBrgb(205, 185, 127)
HSLhsl(45, 44%, 65%)
CMYKcmyk(0%, 10%, 38%, 20%)
LABlab(75.6 -1.2 32.0)
LCHlch(75.6 32.1 92.1)
OKLCHoklch(0.789 0.079 91.2)
Decimal13482367
Display P3color(display-p3 0.804 0.725 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdb97f on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#cdb97f on black: 10.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C5B77B
deuteranopia · #CABD81
tritanopia · #D9B0AA

Color scale — 50 to 950

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

#FAF9F5
#F5F2EA
#EBE4D1
#DFD3AE
#cdb97f
#C0A75E
#B09445
#937C39
#75632E
#564925
#362E17
Base = 400Lightest = 50 · #FAF9F5Darkest = 950 · #362E17
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F2EA;
  --brand-200: #EBE4D1;
  --brand-300: #DFD3AE;
  --brand-400: #cdb97f;
  --brand-500: #C0A75E;
  --brand-600: #B09445;
  --brand-700: #937C39;
  --brand-800: #75632E;
  --brand-900: #564925;
  --brand-950: #362E17;
  --brand: #cdb97f;
  --brand-ink: #000000;
}

Colors that work with #cdb97f

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#E8DFC4
Hairlines and dividers
Muted text#9B864B
Captions on the surface
Accent#356797
Second voice, not a rival
Dark variant#5C4D24
Hover, pressed, headers
Light variant#F8F5ED
Selected rows, tints
Dark surface#242014
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 #cdb97f

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#7F93CD
Analogous left#CD927F
Analogous right#BACD7F
Split-complement 1#7FBACD
Split-complement 2#927FCD
Triadic 1#7FCDB9
Triadic 2#B97FCD
Tetradic#7FCD92

RGB percentages

Red80.4%
Green72.5%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta9.8%
Yellow38.0%
Key (black)19.6%

Color previews

#cdb97f text on a black background

contrast 10.84:1

Card sample

#cdb97f text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdb97f

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.

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

#cdb97f, answered

What color is #cdb97f?

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

What is the RGB value of #cdb97f?

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

Is #cdb97f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4921 and perceived brightness is 73%, so black text on it reaches 10.84:1.

Should I use black or white text on #cdb97f?

Black. It scores 10.84:1 against #cdb97f, versus 1.94:1 for white — AAA at any size.

What is the complementary color of #cdb97f?

#7F93CD sits directly opposite on the wheel. Softer options are the split-complements #7FBACD and #927FCD, which give the same contrast with far less vibration.

What colors go well with #cdb97f?

For interface work: #FAF9F4 as the surface, #E8DFC4 for borders, #9B864B for secondary text, #356797 as an accent and #5C4D24 for hover and pressed states. For a palette, the analogous pair #CD927F and #BACD7F stays calm, while #7F93CD is the loudest partner.

What is #cdb97f in CMYK for printing?

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

Is #cdb97f warm or cool?

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

Work with #cdb97f in the Color Lab