Skip to content

#cec06f

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

RGB
206, 192, 111
HSL
51°, 49%, 62%
CMYK
0, 7, 46, 19
Luminance
0.5197

At a glance

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

Hex
#cec06f
Hue
51°
yellow
Saturation
49%
vivid
Lightness
62%
balanced
Brightness
81%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5197
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.39:1
Closest name
Dark Khaki
ΔE2000 3.7
Where it sits
Hue51° of 360°
Saturation49%
Lightness62%
Temperature
Warm ← → Cool18% 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#cec06f
RGBrgb(206, 192, 111)
HSLhsl(51, 49%, 62%)
CMYKcmyk(0%, 7%, 46%, 19%)
LABlab(77.3 -6.1 42.4)
LCHlch(77.3 42.9 98.2)
OKLCHoklch(0.802 0.103 99.7)
Decimal13549679
Display P3color(display-p3 0.808 0.753 0.435)

Copy-ready code

/* CSS */
color: #cec06f;
background-color: #cec06f;
/* Tailwind (arbitrary) */
class="text-[#cec06f] bg-[#cec06f]"
/* SCSS */
$brand: #cec06f;
/* SwiftUI */
Color(red: 0.808, green: 0.753, blue: 0.435)
/* Android */
Color.parseColor("#cec06f")
/* Flutter */
Color(0xFFCEC06F)
/* Python / OpenCV (BGR) */
(111, 192, 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 #cec06f · 11.39:1
Use #000000AAA at every size.
Aa
White text · 1.84:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.39:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cec06f as text scores 1.84:1 on white and 11.39:1 on black.

Accessibility — WCAG contrast

Aa
#cec06f on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#cec06f on black: 11.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CEBC68
deuteranopia · #D2C172
tritanopia · #DBB6AD

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cec06f 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.

#FAF9F4
#F6F4EA
#ECE8CF
#E3DAAB
#cec06f
#C6B658
#B7A53E
#988934
#7A6E29
#595121
#383215
Base = 400Lightest = 50 · #FAF9F4Darkest = 950 · #383215
:root {
  --brand-50: #FAF9F4;
  --brand-100: #F6F4EA;
  --brand-200: #ECE8CF;
  --brand-300: #E3DAAB;
  --brand-400: #cec06f;
  --brand-500: #C6B658;
  --brand-600: #B7A53E;
  --brand-700: #988934;
  --brand-800: #7A6E29;
  --brand-900: #595121;
  --brand-950: #383215;
  --brand: #cec06f;
  --brand-ink: #000000;
}

Colors that work with #cec06f

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#EAE4C2
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#305B9C
Second voice, not a rival
Dark variant#5F5620
Hover, pressed, headers
Light variant#F9F7EC
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 #cec06f

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#6F7DCE
Analogous left#CE916F
Analogous right#ADCE6F
Split-complement 1#6FADCE
Split-complement 2#916FCE
Triadic 1#6FCEC0
Triadic 2#C06FCE
Tetradic#6FCE91

RGB percentages

Red80.8%
Green75.3%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta6.8%
Yellow46.1%
Key (black)19.2%

Color previews

#cec06f text on a black background

contrast 11.39:1

Card sample

#cec06f text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec06f

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.

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

#cec06f, answered

What color is #cec06f?

#cec06f is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 3.7). It sits at 51° on the hue wheel with 49% saturation and 62% lightness, which reads as warm.

What is the RGB value of #cec06f?

rgb(206, 192, 111) — 206 red, 192 green and 111 blue out of 255, or 80.8% / 75.3% / 43.5% by channel.

Is #cec06f a light or a dark color?

It is a light color. Relative luminance is 0.5197 and perceived brightness is 74%, so black text on it reaches 11.39:1.

Should I use black or white text on #cec06f?

Black. It scores 11.39:1 against #cec06f, versus 1.84:1 for white — AAA at any size.

What is the complementary color of #cec06f?

#6F7DCE sits directly opposite on the wheel. Softer options are the split-complements #6FADCE and #916FCE, which give the same contrast with far less vibration.

What colors go well with #cec06f?

For interface work: #FAFAF4 as the surface, #EAE4C2 for borders, #9B8F4B for secondary text, #305B9C as an accent and #5F5620 for hover and pressed states. For a palette, the analogous pair #CE916F and #ADCE6F stays calm, while #6F7DCE is the loudest partner.

What is #cec06f in CMYK for printing?

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

Is #cec06f warm or cool?

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

Work with #cec06f in the Color Lab