Skip to content

#cec72f

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

RGB
206, 199, 47
HSL
57°, 63%, 50%
CMYK
0, 3, 77, 19
Luminance
0.5417

At a glance

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

Hex
#cec72f
Hue
57°
yellow
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5417
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.83:1
Closest name
Dark Khaki
ΔE2000 9.8
Where it sits
Hue57° of 360°
Saturation63%
Lightness50%
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#cec72f
RGBrgb(206, 199, 47)
HSLhsl(57, 63%, 50%)
CMYKcmyk(0%, 3%, 77%, 19%)
LABlab(78.6 -13.9 70.7)
LCHlch(78.6 72.1 101.1)
OKLCHoklch(0.810 0.161 106.7)
Decimal13551407
Display P3color(display-p3 0.808 0.780 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec72f on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#cec72f on black: 11.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D8BF00
deuteranopia · #DBC53C
tritanopia · #DDB9AB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cec72f is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF4
#F7F7E8
#F0EFCC
#EAE7A4
#E0DB76
#D5CF48
#cec72f
#A6A126
#85801E
#615D1A
#3C3A10
Base = 600Lightest = 50 · #FBFBF4Darkest = 950 · #3C3A10
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F7E8;
  --brand-200: #F0EFCC;
  --brand-300: #EAE7A4;
  --brand-400: #E0DB76;
  --brand-500: #D5CF48;
  --brand-600: #cec72f;
  --brand-700: #A6A126;
  --brand-800: #85801E;
  --brand-900: #615D1A;
  --brand-950: #3C3A10;
  --brand: #cec72f;
  --brand-ink: #000000;
}

Colors that work with #cec72f

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#EDEBC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#2A5CD3
Second voice, not a rival
Dark variant#686418
Hover, pressed, headers
Light variant#FAFAEA
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 #cec72f

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#2F36CE
Analogous left#CE782F
Analogous right#85CE2F
Split-complement 1#2F85CE
Split-complement 2#782FCE
Triadic 1#2FCEC7
Triadic 2#C72FCE
Tetradic#2FCE78

RGB percentages

Red80.8%
Green78.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta3.4%
Yellow77.2%
Key (black)19.2%

Color previews

#cec72f text on a black background

contrast 11.83:1

Card sample

#cec72f text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 199, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 199, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec72f;
background: linear-gradient(135deg, #cec72f, #6BCE2F);

Monochromatic scale

Palettes built from #cec72f

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.

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

#cec72f, answered

What color is #cec72f?

#cec72f is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 9.8). It sits at 57° on the hue wheel with 63% saturation and 50% lightness, which reads as warm.

What is the RGB value of #cec72f?

rgb(206, 199, 47) — 206 red, 199 green and 47 blue out of 255, or 80.8% / 78% / 18.4% by channel.

Is #cec72f a light or a dark color?

It is a light color. Relative luminance is 0.5417 and perceived brightness is 75%, so black text on it reaches 11.83:1.

Should I use black or white text on #cec72f?

Black. It scores 11.83:1 against #cec72f, versus 1.77:1 for white — AAA at any size.

What is the complementary color of #cec72f?

#2F36CE sits directly opposite on the wheel. Softer options are the split-complements #2F85CE and #782FCE, which give the same contrast with far less vibration.

What colors go well with #cec72f?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #2A5CD3 as an accent and #686418 for hover and pressed states. For a palette, the analogous pair #CE782F and #85CE2F stays calm, while #2F36CE is the loudest partner.

What is #cec72f in CMYK for printing?

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

Is #cec72f 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 #CE952F; nudged cooler, #9BD02D.

Work with #cec72f in the Color Lab