#fcca2f
a balanced, electric yellow · warm · closest name: Gold
At a glance
Every number on this page in one read: what #fcca2f 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 | #fcca2f |
| RGB | rgb(252, 202, 47) |
| HSL | hsl(45, 97%, 59%) |
| CMYK | cmyk(0%, 20%, 81%, 1%) |
| LAB | lab(83.5 4.2 76.7) |
| LCH | lch(83.5 76.8 86.9) |
| OKLCH | oklch(0.860 0.165 89.1) |
| Decimal | 16566831 |
| Display P3 | color(display-p3 0.988 0.792 0.184) |
Copy-ready code
/* CSS */
color: #fcca2f;
background-color: #fcca2f;
/* Tailwind (arbitrary) */
class="text-[#fcca2f] bg-[#fcca2f]"
/* SCSS */
$brand: #fcca2f;
/* SwiftUI */
Color(red: 0.988, green: 0.792, blue: 0.184)
/* Android */
Color.parseColor("#fcca2f")
/* Flutter */
Color(0xFFFCCA2F)
/* Python / OpenCV (BGR) */
(47, 202, 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. #fcca2f 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: #FDFAF1;
--brand-100: #FCF6E4;
--brand-200: #FBEDC1;
--brand-300: #FDE390;
--brand-400: #FDD559;
--brand-500: #fcca2f;
--brand-600: #F1B703;
--brand-700: #C99903;
--brand-800: #A17A02;
--brand-900: #745906;
--brand-950: #483804;
--brand: #fcca2f;
--brand-ink: #000000;
}Colors that work with #fcca2f
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 #fcca2f
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 | #2F61FC | Directly opposite — maximum tension | |
| Analogous left | #FC632F | Neighbour, quieter | |
| Analogous right | #C7FC2F | Neighbour, quieter | |
| Split-complement 1 | #2FC7FC | Contrast without the clash | |
| Split-complement 2 | #632FFC | Contrast without the clash | |
| Triadic 1 | #2FFCCA | Even thirds — balanced and loud | |
| Triadic 2 | #CA2FFC | Even thirds — balanced and loud | |
| Tetradic | #2FFC63 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#fcca2f text on a black background
contrast 13.63:1
#fcca2f text on a white background
contrast 1.54:1
CSS3 live lab
The quick brown fox
color: #fcca2f;
background-color: #fcca2f;
Glowing headline
text-shadow: 2px 2px 8px #fcca2f;
Soft neon halo
text-shadow: 0 0 14px rgba(252, 202, 47, 0.45);
box-shadow: 0 12px 32px -8px rgba(252, 202, 47, 0.45);
border: 3px solid #fcca2f; background: linear-gradient(135deg, #fcca2f, #A5FC2F);
Monochromatic scale
Palettes built from #fcca2f
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: Sunflower (#ffc512) — ΔE2000 2.2 away, with its history, psychology and brand usage.
#fcca2f 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.
#fcca2f, answered
What color is #fcca2f?
#fcca2f is a balanced electric yellow, closest to Gold (ΔE2000 4.7). It sits at 45° on the hue wheel with 97% saturation and 59% lightness, which reads as warm.
What is the RGB value of #fcca2f?
rgb(252, 202, 47) — 252 red, 202 green and 47 blue out of 255, or 98.8% / 79.2% / 18.4% by channel.
Is #fcca2f a light or a dark color?
It is a light color. Relative luminance is 0.6314 and perceived brightness is 82%, so black text on it reaches 13.63:1.
Should I use black or white text on #fcca2f?
Black. It scores 13.63:1 against #fcca2f, versus 1.54:1 for white — AAA at any size.
What is the complementary color of #fcca2f?
#2F61FC sits directly opposite on the wheel. Softer options are the split-complements #2FC7FC and #632FFC, which give the same contrast with far less vibration.
What colors go well with #fcca2f?
For interface work: #FAF9F4 as the surface, #EDE2C0 for borders, #9B874B for secondary text, #0065CC as an accent and #7E6002 for hover and pressed states. For a palette, the analogous pair #FC632F and #C7FC2F stays calm, while #2F61FC is the loudest partner.
What is #fcca2f in CMYK for printing?
cmyk(0%, 20%, 81%, 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 #fcca2f warm or cool?
Warm — it scores 13 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FCA62F; nudged cooler, #E4FE2D.