Skip to content

#c9cd7f

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

RGB
201, 205, 127
HSL
63°, 44%, 65%
CMYK
2, 0, 38, 20
Luminance
0.5761

At a glance

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

Hex
#c9cd7f
Hue
63°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5761
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.52:1
Closest name
Dark Khaki
ΔE2000 5.9
Where it sits
Hue63° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool28% 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#c9cd7f
RGBrgb(201, 205, 127)
HSLhsl(63, 44%, 65%)
CMYKcmyk(2%, 0%, 38%, 20%)
LABlab(80.5 -13.1 38.4)
LCHlch(80.5 40.5 108.9)
OKLCHoklch(0.828 0.100 110.9)
Decimal13225343
Display P3color(display-p3 0.788 0.804 0.498)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#c9cd7f on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#c9cd7f on black: 12.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D8C779
deuteranopia · #D9C982
tritanopia · #D3C4BA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c9cd7f 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
#F4F5EA
#E9EBD1
#DDDFAE
#c9cd7f
#BBC05E
#AAB045
#8E9339
#72752E
#535625
#343617
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #343617
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F4F5EA;
  --brand-200: #E9EBD1;
  --brand-300: #DDDFAE;
  --brand-400: #c9cd7f;
  --brand-500: #BBC05E;
  --brand-600: #AAB045;
  --brand-700: #8E9339;
  --brand-800: #72752E;
  --brand-900: #535625;
  --brand-950: #343617;
  --brand: #c9cd7f;
  --brand-ink: #000000;
}

Colors that work with #c9cd7f

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#E6E8C4
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#7B8CD1
Second voice, not a rival
Dark variant#595C24
Hover, pressed, headers
Light variant#F7F8ED
Selected rows, tints
Dark surface#242414
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 #c9cd7f

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#837FCD
Analogous left#CDAA7F
Analogous right#A2CD7F
Split-complement 1#7FA2CD
Split-complement 2#AA7FCD
Triadic 1#7FC9CD
Triadic 2#CD7FC9
Tetradic#7FCDAA

RGB percentages

Red78.8%
Green80.4%
Blue49.8%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow38.0%
Key (black)19.6%

Color previews

#c9cd7f text on a black background

contrast 12.52:1

Card sample

#c9cd7f text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c9cd7f

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.

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

#c9cd7f, answered

What color is #c9cd7f?

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

What is the RGB value of #c9cd7f?

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

Is #c9cd7f a light or a dark color?

It is a light color. Relative luminance is 0.5761 and perceived brightness is 77%, so black text on it reaches 12.52:1.

Should I use black or white text on #c9cd7f?

Black. It scores 12.52:1 against #c9cd7f, versus 1.68:1 for white — AAA at any size.

What is the complementary color of #c9cd7f?

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

What colors go well with #c9cd7f?

For interface work: #FAFAF4 as the surface, #E6E8C4 for borders, #979B4B for secondary text, #7B8CD1 as an accent and #595C24 for hover and pressed states. For a palette, the analogous pair #CDAA7F and #A2CD7F stays calm, while #837FCD is the loudest partner.

What is #c9cd7f in CMYK for printing?

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

Is #c9cd7f warm or cool?

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

Work with #c9cd7f in the Color Lab