Skip to content

#cccd7f

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

RGB
204, 205, 127
HSL
61°, 44%, 65%
CMYK
1, 0, 38, 20
Luminance
0.5803

At a glance

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

Hex
#cccd7f
Hue
61°
yellow
Saturation
44%
soft
Lightness
65%
light
Brightness
80%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5803
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.61:1
Closest name
Dark Khaki
ΔE2000 5.7
Where it sits
Hue61° of 360°
Saturation44%
Lightness65%
Temperature
Warm ← → Cool26% 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#cccd7f
RGBrgb(204, 205, 127)
HSLhsl(61, 44%, 65%)
CMYKcmyk(1%, 0%, 38%, 20%)
LABlab(80.8 -11.9 38.7)
LCHlch(80.8 40.5 107.1)
OKLCHoklch(0.830 0.100 109.0)
Decimal13421951
Display P3color(display-p3 0.800 0.804 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccd7f on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cccd7f on black: 12.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9C779
deuteranopia · #DACA82
tritanopia · #D6C4BA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cccd7f 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
#F5F5EA
#EAEBD1
#DFDFAE
#cccd7f
#BFC05E
#AFB045
#919339
#74752E
#555625
#353617
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #353617
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F5EA;
  --brand-200: #EAEBD1;
  --brand-300: #DFDFAE;
  --brand-400: #cccd7f;
  --brand-500: #BFC05E;
  --brand-600: #AFB045;
  --brand-700: #919339;
  --brand-800: #74752E;
  --brand-900: #555625;
  --brand-950: #353617;
  --brand: #cccd7f;
  --brand-ink: #000000;
}

Colors that work with #cccd7f

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#E8E8C4
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#354D97
Second voice, not a rival
Dark variant#5B5C24
Hover, pressed, headers
Light variant#F8F8ED
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 #cccd7f

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#807FCD
Analogous left#CDA77F
Analogous right#A5CD7F
Split-complement 1#7FA5CD
Split-complement 2#A77FCD
Triadic 1#7FCCCD
Triadic 2#CD7FCC
Tetradic#7FCDA7

RGB percentages

Red80.0%
Green80.4%
Blue49.8%

CMYK percentages

Cyan0.5%
Magenta0.0%
Yellow38.0%
Key (black)19.6%

Color previews

#cccd7f text on a black background

contrast 12.61:1

Card sample

#cccd7f text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccd7f

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.

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

#cccd7f, answered

What color is #cccd7f?

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

What is the RGB value of #cccd7f?

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

Is #cccd7f a light or a dark color?

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

Should I use black or white text on #cccd7f?

Black. It scores 12.61:1 against #cccd7f, versus 1.67:1 for white — AAA at any size.

What is the complementary color of #cccd7f?

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

What colors go well with #cccd7f?

For interface work: #FAFAF4 as the surface, #E8E8C4 for borders, #9A9B4B for secondary text, #354D97 as an accent and #5B5C24 for hover and pressed states. For a palette, the analogous pair #CDA77F and #A5CD7F stays calm, while #807FCD is the loudest partner.

What is #cccd7f in CMYK for printing?

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

Is #cccd7f warm or cool?

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

Work with #cccd7f in the Color Lab