#cec84a
a balanced, vivid yellow · warm · closest name: Dark Khaki
At a glance
Every number on this page in one read: what #cec84a is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #cec84a |
| RGB | rgb(206, 200, 74) |
| HSL | hsl(57, 57%, 55%) |
| CMYK | cmyk(0%, 3%, 64%, 19%) |
| LAB | lab(79.0 -13.1 61.5) |
| LCH | lch(79.0 62.8 102.1) |
| OKLCH | oklch(0.814 0.145 106.6) |
| Decimal | 13551690 |
| Display P3 | color(display-p3 0.808 0.784 0.290) |
Copy-ready code
/* CSS */
color: #cec84a;
background-color: #cec84a;
/* Tailwind (arbitrary) */
class="text-[#cec84a] bg-[#cec84a]"
/* SCSS */
$brand: #cec84a;
/* SwiftUI */
Color(red: 0.808, green: 0.784, blue: 0.290)
/* Android */
Color.parseColor("#cec84a")
/* Flutter */
Color(0xFFCEC84A)
/* Python / OpenCV (BGR) */
(74, 200, 206)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #cec84a 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.
:root {
--brand-50: #FBFAF4;
--brand-100: #F7F6E9;
--brand-200: #EFEDCD;
--brand-300: #E7E4A7;
--brand-400: #DBD77B;
--brand-500: #cec84a;
--brand-600: #C1BA34;
--brand-700: #A19B2B;
--brand-800: #807C23;
--brand-900: #5E5B1D;
--brand-950: #3A3912;
--brand: #cec84a;
--brand-ink: #000000;
}Colors that work with #cec84a
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #cec84a
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #4A50CE | Directly opposite — maximum tension | |
| Analogous left | #CE864A | Neighbour, quieter | |
| Analogous right | #92CE4A | Neighbour, quieter | |
| Split-complement 1 | #4A92CE | Contrast without the clash | |
| Split-complement 2 | #864ACE | Contrast without the clash | |
| Triadic 1 | #4ACEC8 | Even thirds — balanced and loud | |
| Triadic 2 | #C84ACE | Even thirds — balanced and loud | |
| Tetradic | #4ACE86 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cec84a text on a black background
contrast 11.98:1
#cec84a text on a white background
contrast 1.75:1
CSS3 live lab
The quick brown fox
color: #cec84a;
background-color: #cec84a;
Glowing headline
text-shadow: 2px 2px 8px #cec84a;
Soft neon halo
text-shadow: 0 0 14px rgba(206, 200, 74, 0.45);
box-shadow: 0 12px 32px -8px rgba(206, 200, 74, 0.45);
border: 3px solid #cec84a; background: linear-gradient(135deg, #cec84a, #7CCE4A);
Monochromatic scale
Palettes built from #cec84a
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.
Closest color with a full write-up: Dandelion (#f0e130) — ΔE2000 7.8 away, with its history, psychology and brand usage.
#cec84a in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#cec84a, answered
What color is #cec84a?
#cec84a is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7.9). It sits at 57° on the hue wheel with 57% saturation and 55% lightness, which reads as warm.
What is the RGB value of #cec84a?
rgb(206, 200, 74) — 206 red, 200 green and 74 blue out of 255, or 80.8% / 78.4% / 29% by channel.
Is #cec84a a light or a dark color?
It is a light color. Relative luminance is 0.5492 and perceived brightness is 75%, so black text on it reaches 11.98:1.
Should I use black or white text on #cec84a?
Black. It scores 11.98:1 against #cec84a, versus 1.75:1 for white — AAA at any size.
What is the complementary color of #cec84a?
#4A50CE sits directly opposite on the wheel. Softer options are the split-complements #4A92CE and #864ACE, which give the same contrast with far less vibration.
What colors go well with #cec84a?
For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #456FD3 as an accent and #64611B for hover and pressed states. For a palette, the analogous pair #CE864A and #92CE4A stays calm, while #4A50CE is the loudest partner.
What is #cec84a in CMYK for printing?
cmyk(0%, 3%, 64%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #cec84a 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 #CE9B4A; nudged cooler, #A4D048.