Skip to content

#ccc97f

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

RGB
204, 201, 127
HSL
58°, 43%, 65%
CMYK
0, 2, 38, 20
Luminance
0.5614

At a glance

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

Hex
#ccc97f
Hue
58°
yellow
Saturation
43%
soft
Lightness
65%
balanced
Brightness
80%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5614
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.23:1
Closest name
Dark Khaki
ΔE2000 4.7
Where it sits
Hue58° of 360°
Saturation43%
Lightness65%
Temperature
Warm ← → Cool23% 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#ccc97f
RGBrgb(204, 201, 127)
HSLhsl(58, 43%, 65%)
CMYKcmyk(0%, 2%, 38%, 20%)
LABlab(79.7 -9.9 37.4)
LCHlch(79.7 38.6 104.8)
OKLCHoklch(0.822 0.095 106.3)
Decimal13420927
Display P3color(display-p3 0.800 0.788 0.498)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#ccc97f on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#ccc97f on black: 12.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5C479
deuteranopia · #D7C782
tritanopia · #D6C0B7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ccc97f 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
#F5F4EB
#EAE9D1
#DFDDAF
#ccc97f
#BFBB5F
#AFAB46
#928E3A
#75722F
#555425
#353417
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #353417
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F4EB;
  --brand-200: #EAE9D1;
  --brand-300: #DFDDAF;
  --brand-400: #ccc97f;
  --brand-500: #BFBB5F;
  --brand-600: #AFAB46;
  --brand-700: #928E3A;
  --brand-800: #75722F;
  --brand-900: #555425;
  --brand-950: #353417;
  --brand: #ccc97f;
  --brand-ink: #000000;
}

Colors that work with #ccc97f

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#E8E6C5
Hairlines and dividers
Muted text#9B984B
Captions on the surface
Accent#365296
Second voice, not a rival
Dark variant#5B5924
Hover, pressed, headers
Light variant#F8F7ED
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 #ccc97f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#7F82CC
Analogous left#CCA37F
Analogous right#A8CC7F
Split-complement 1#7FA8CC
Split-complement 2#A37FCC
Triadic 1#7FCCC9
Triadic 2#C97FCC
Tetradic#7FCCA3

RGB percentages

Red80.0%
Green78.8%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow37.7%
Key (black)20.0%

Color previews

#ccc97f text on a black background

contrast 12.23:1

Card sample

#ccc97f text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc97f

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.

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

#ccc97f, answered

What color is #ccc97f?

#ccc97f is a balanced soft yellow, closest to Dark Khaki (ΔE2000 4.7). It sits at 58° on the hue wheel with 43% saturation and 65% lightness, which reads as warm.

What is the RGB value of #ccc97f?

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

Is #ccc97f a light or a dark color?

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

Should I use black or white text on #ccc97f?

Black. It scores 12.23:1 against #ccc97f, versus 1.72:1 for white — AAA at any size.

What is the complementary color of #ccc97f?

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

What colors go well with #ccc97f?

For interface work: #FAFAF4 as the surface, #E8E6C5 for borders, #9B984B for secondary text, #365296 as an accent and #5B5924 for hover and pressed states. For a palette, the analogous pair #CCA37F and #A8CC7F stays calm, while #7F82CC is the loudest partner.

What is #ccc97f 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 #ccc97f warm or cool?

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

Work with #ccc97f in the Color Lab