Skip to content

#cec63f

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

RGB
206, 198, 63
HSL
57°, 59%, 53%
CMYK
0, 4, 69, 19
Luminance
0.5387

At a glance

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

Hex
#cec63f
Hue
57°
yellow
Saturation
59%
vivid
Lightness
53%
balanced
Brightness
81%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5387
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.77:1
Closest name
Dark Khaki
ΔE2000 8.5
Where it sits
Hue57° of 360°
Saturation59%
Lightness53%
Temperature
Warm ← → Cool22% 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#cec63f
RGBrgb(206, 198, 63)
HSLhsl(57, 59%, 53%)
CMYKcmyk(0%, 4%, 69%, 19%)
LABlab(78.4 -12.7 65.2)
LCHlch(78.4 66.4 101.0)
OKLCHoklch(0.809 0.151 105.9)
Decimal13551167
Display P3color(display-p3 0.808 0.776 0.247)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec63f on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#cec63f on black: 11.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D7BF2A
deuteranopia · #DAC448
tritanopia · #DDB9AB

Color scale — 50 to 950

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

#FBFAF4
#F7F6E9
#EFEDCD
#E8E4A6
#DDD779
#cec63f
#C3BB32
#A29C2A
#827D21
#5F5B1C
#3B3911
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3B3911
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEDCD;
  --brand-300: #E8E4A6;
  --brand-400: #DDD779;
  --brand-500: #cec63f;
  --brand-600: #C3BB32;
  --brand-700: #A29C2A;
  --brand-800: #827D21;
  --brand-900: #5F5B1C;
  --brand-950: #3B3911;
  --brand: #cec63f;
  --brand-ink: #000000;
}

Colors that work with #cec63f

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#EDEAC0
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#3A69D3
Second voice, not a rival
Dark variant#66611A
Hover, pressed, headers
Light variant#FAF9EB
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 #cec63f

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#3F47CE
Analogous left#CE7E3F
Analogous right#8ECE3F
Split-complement 1#3F8ECE
Split-complement 2#7E3FCE
Triadic 1#3FCEC6
Triadic 2#C63FCE
Tetradic#3FCE7E

RGB percentages

Red80.8%
Green77.6%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow69.4%
Key (black)19.2%

Color previews

#cec63f text on a black background

contrast 11.77:1

Card sample

#cec63f text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 198, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 198, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec63f;
background: linear-gradient(135deg, #cec63f, #77CE3F);

Monochromatic scale

Palettes built from #cec63f

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.

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

#cec63f, answered

What color is #cec63f?

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

What is the RGB value of #cec63f?

rgb(206, 198, 63) — 206 red, 198 green and 63 blue out of 255, or 80.8% / 77.6% / 24.7% by channel.

Is #cec63f a light or a dark color?

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

Should I use black or white text on #cec63f?

Black. It scores 11.77:1 against #cec63f, versus 1.78:1 for white — AAA at any size.

What is the complementary color of #cec63f?

#3F47CE sits directly opposite on the wheel. Softer options are the split-complements #3F8ECE and #7E3FCE, which give the same contrast with far less vibration.

What colors go well with #cec63f?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #3A69D3 as an accent and #66611A for hover and pressed states. For a palette, the analogous pair #CE7E3F and #8ECE3F stays calm, while #3F47CE is the loudest partner.

What is #cec63f in CMYK for printing?

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

Is #cec63f warm or cool?

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

Work with #cec63f in the Color Lab