Skip to content

#cec87f

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

RGB
206, 200, 127
HSL
55°, 45%, 65%
CMYK
0, 3, 38, 19
Luminance
0.5596

At a glance

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

Hex
#cec87f
Hue
55°
yellow
Saturation
45%
soft
Lightness
65%
light
Brightness
81%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5596
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.19:1
Closest name
Dark Khaki
ΔE2000 4.5
Where it sits
Hue55° of 360°
Saturation45%
Lightness65%
Temperature
Warm ← → Cool21% 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#cec87f
RGBrgb(206, 200, 127)
HSLhsl(55, 45%, 65%)
CMYKcmyk(0%, 3%, 38%, 19%)
LABlab(79.6 -8.6 37.3)
LCHlch(79.6 38.2 103.0)
OKLCHoklch(0.821 0.094 104.2)
Decimal13551743
Display P3color(display-p3 0.808 0.784 0.498)

Copy-ready code

/* CSS */
color: #cec87f;
background-color: #cec87f;
/* Tailwind (arbitrary) */
class="text-[#cec87f] bg-[#cec87f]"
/* SCSS */
$brand: #cec87f;
/* SwiftUI */
Color(red: 0.808, green: 0.784, blue: 0.498)
/* Android */
Color.parseColor("#cec87f")
/* Flutter */
Color(0xFFCEC87F)
/* Python / OpenCV (BGR) */
(127, 200, 206)

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

Accessibility — WCAG contrast

Aa
#cec87f on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#cec87f on black: 12.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D4C37A
deuteranopia · #D6C782
tritanopia · #D9BFB6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cec87f 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
#F5F4EA
#EBE9D1
#E0DCAE
#cec87f
#C1B95D
#B1A944
#938D39
#76702D
#565224
#363417
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #363417
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F4EA;
  --brand-200: #EBE9D1;
  --brand-300: #E0DCAE;
  --brand-400: #cec87f;
  --brand-500: #C1B95D;
  --brand-600: #B1A944;
  --brand-700: #938D39;
  --brand-800: #76702D;
  --brand-900: #565224;
  --brand-950: #363417;
  --brand: #cec87f;
  --brand-ink: #000000;
}

Colors that work with #cec87f

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#E8E6C4
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#345598
Second voice, not a rival
Dark variant#5C5823
Hover, pressed, headers
Light variant#F8F7ED
Selected rows, tints
Dark surface#242314
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 #cec87f

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#7F85CE
Analogous left#CEA07F
Analogous right#ADCE7F
Split-complement 1#7FADCE
Split-complement 2#A07FCE
Triadic 1#7FCEC8
Triadic 2#C87FCE
Tetradic#7FCEA0

RGB percentages

Red80.8%
Green78.4%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow38.3%
Key (black)19.2%

Color previews

#cec87f text on a black background

contrast 12.19:1

Card sample

#cec87f text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec87f

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.

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

#cec87f, answered

What color is #cec87f?

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

What is the RGB value of #cec87f?

rgb(206, 200, 127) — 206 red, 200 green and 127 blue out of 255, or 80.8% / 78.4% / 49.8% by channel.

Is #cec87f a light or a dark color?

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

Should I use black or white text on #cec87f?

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

What is the complementary color of #cec87f?

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

What colors go well with #cec87f?

For interface work: #FAFAF4 as the surface, #E8E6C4 for borders, #9B954B for secondary text, #345598 as an accent and #5C5823 for hover and pressed states. For a palette, the analogous pair #CEA07F and #ADCE7F stays calm, while #7F85CE is the loudest partner.

What is #cec87f in CMYK for printing?

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

Is #cec87f warm or cool?

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

Work with #cec87f in the Color Lab