Skip to content

#cdc37f

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

RGB
205, 195, 127
HSL
52°, 44%, 65%
CMYK
0, 5, 38, 20
Luminance
0.5354

At a glance

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

Hex
#cdc37f
Hue
52°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5354
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
11.71:1
Closest name
Dark Khaki
ΔE2000 4
Where it sits
Hue52° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool19% 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#cdc37f
RGBrgb(205, 195, 127)
HSLhsl(52, 44%, 65%)
CMYKcmyk(0%, 5%, 38%, 20%)
LABlab(78.2 -6.4 35.4)
LCHlch(78.2 36.0 100.2)
OKLCHoklch(0.810 0.089 100.9)
Decimal13484927
Display P3color(display-p3 0.804 0.765 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdc37f on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#cdc37f on black: 11.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CFBF7A
deuteranopia · #D2C382
tritanopia · #D8BAB2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cdc37f 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
#F5F4EA
#EBE7D1
#DFD9AE
#cdc37f
#C0B35E
#B0A245
#938739
#756C2E
#565025
#363217
Base = 400Lightest = 50 · #FAF9F5Darkest = 950 · #363217
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F5F4EA;
  --brand-200: #EBE7D1;
  --brand-300: #DFD9AE;
  --brand-400: #cdc37f;
  --brand-500: #C0B35E;
  --brand-600: #B0A245;
  --brand-700: #938739;
  --brand-800: #756C2E;
  --brand-900: #565025;
  --brand-950: #363217;
  --brand: #cdc37f;
  --brand-ink: #000000;
}

Colors that work with #cdc37f

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#E8E3C4
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#355B97
Second voice, not a rival
Dark variant#5C5524
Hover, pressed, headers
Light variant#F8F6ED
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 #cdc37f

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#7F89CD
Analogous left#CD9C7F
Analogous right#B0CD7F
Split-complement 1#7FB0CD
Split-complement 2#9C7FCD
Triadic 1#7FCDC3
Triadic 2#C37FCD
Tetradic#7FCD9C

RGB percentages

Red80.4%
Green76.5%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow38.0%
Key (black)19.6%

Color previews

#cdc37f text on a black background

contrast 11.71:1

Card sample

#cdc37f text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdc37f

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.

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

#cdc37f, answered

What color is #cdc37f?

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

What is the RGB value of #cdc37f?

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

Is #cdc37f a light or a dark color?

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

Should I use black or white text on #cdc37f?

Black. It scores 11.71:1 against #cdc37f, versus 1.79:1 for white — AAA at any size.

What is the complementary color of #cdc37f?

#7F89CD sits directly opposite on the wheel. Softer options are the split-complements #7FB0CD and #9C7FCD, which give the same contrast with far less vibration.

What colors go well with #cdc37f?

For interface work: #FAFAF4 as the surface, #E8E3C4 for borders, #9B914B for secondary text, #355B97 as an accent and #5C5524 for hover and pressed states. For a palette, the analogous pair #CD9C7F and #B0CD7F stays calm, while #7F89CD is the loudest partner.

What is #cdc37f in CMYK for printing?

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

Is #cdc37f warm or cool?

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

Work with #cdc37f in the Color Lab