#fcdf9a
a light, electric yellow · warm · closest name: Moccasin
At a glance
Every number on this page in one read: what #fcdf9a 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 | #fcdf9a |
| RGB | rgb(252, 223, 154) |
| HSL | hsl(42, 94%, 80%) |
| CMYK | cmyk(0%, 12%, 39%, 1%) |
| LAB | lab(89.8 0.7 37.5) |
| LCH | lch(89.8 37.5 89.0) |
| OKLCH | oklch(0.912 0.093 87.7) |
| Decimal | 16572314 |
| Display P3 | color(display-p3 0.988 0.875 0.604) |
Copy-ready code
/* CSS */
color: #fcdf9a;
background-color: #fcdf9a;
/* Tailwind (arbitrary) */
class="text-[#fcdf9a] bg-[#fcdf9a]"
/* SCSS */
$brand: #fcdf9a;
/* SwiftUI */
Color(red: 0.988, green: 0.875, blue: 0.604)
/* Android */
Color.parseColor("#fcdf9a")
/* Flutter */
Color(0xFFFCDF9A)
/* Python / OpenCV (BGR) */
(154, 223, 252)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. #fcdf9a is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FDFAF2;
--brand-100: #FBF4E4;
--brand-200: #FAE9C2;
--brand-300: #fcdf9a;
--brand-400: #FACB5C;
--brand-500: #F8BA25;
--brand-600: #EEA907;
--brand-700: #C68D06;
--brand-800: #9E7105;
--brand-900: #725308;
--brand-950: #473405;
--brand: #fcdf9a;
--brand-ink: #000000;
}Colors that work with #fcdf9a
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 #fcdf9a
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
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #9AB7FC | Directly opposite — maximum tension | |
| Analogous left | #FCAE9A | Neighbour, quieter | |
| Analogous right | #E8FC9A | Neighbour, quieter | |
| Split-complement 1 | #9AE8FC | Contrast without the clash | |
| Split-complement 2 | #AE9AFC | Contrast without the clash | |
| Triadic 1 | #9AFCDF | Even thirds — balanced and loud | |
| Triadic 2 | #DF9AFC | Even thirds — balanced and loud | |
| Tetradic | #9AFCAE | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#fcdf9a text on a black background
contrast 16.16:1
#fcdf9a text on a white background
contrast 1.30:1
CSS3 live lab
The quick brown fox
color: #fcdf9a;
background-color: #fcdf9a;
Glowing headline
text-shadow: 2px 2px 8px #fcdf9a;
Soft neon halo
text-shadow: 0 0 14px rgba(252, 223, 154, 0.45);
box-shadow: 0 12px 32px -8px rgba(252, 223, 154, 0.45);
border: 3px solid #fcdf9a; background: linear-gradient(135deg, #fcdf9a, #D8FC9A);
Monochromatic scale
Palettes built from #fcdf9a
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: Peach (#ffe5b4) — ΔE2000 4.6 away, with its history, psychology and brand usage.
#fcdf9a in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#fcdf9a, answered
What color is #fcdf9a?
#fcdf9a is a light electric yellow, closest to Moccasin (ΔE2000 5). It sits at 42° on the hue wheel with 94% saturation and 80% lightness, which reads as warm.
What is the RGB value of #fcdf9a?
rgb(252, 223, 154) — 252 red, 223 green and 154 blue out of 255, or 98.8% / 87.5% / 60.4% by channel.
Is #fcdf9a a light or a dark color?
It is a light color. Relative luminance is 0.7580 and perceived brightness is 88%, so black text on it reaches 16.16:1.
Should I use black or white text on #fcdf9a?
Black. It scores 16.16:1 against #fcdf9a, versus 1.30:1 for white — AAA at any size.
What is the complementary color of #fcdf9a?
#9AB7FC sits directly opposite on the wheel. Softer options are the split-complements #9AE8FC and #AE9AFC, which give the same contrast with far less vibration.
What colors go well with #fcdf9a?
For interface work: #FAF9F4 as the surface, #EDDFC0 for borders, #9B834B for secondary text, #0270CA as an accent and #7C5804 for hover and pressed states. For a palette, the analogous pair #FCAE9A and #E8FC9A stays calm, while #9AB7FC is the loudest partner.
What is #fcdf9a in CMYK for printing?
cmyk(0%, 12%, 39%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #fcdf9a warm or cool?
Warm — it scores 10 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FCCC9A; nudged cooler, #F6FD99.