Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Reversible multicolor chromism in layered formamidinium metal halide perovskites

## Abstract

Metal halide perovskites feature crystalline-like electronic band structures and liquid-like physical properties. The crystal–liquid duality enables optoelectronic devices with unprecedented performance and a unique opportunity to chemically manipulate the structure with low energy input. In this work, we leverage the low formation energy of metal halide perovskites to demonstrate multicolor reversible chromism. We synthesized layered Ruddlesden-Popper FAn+1PbnX3n+1 (FA = formamidinium, X = I, Br; n = number of layers = 1, 2, 3 … ∞) and reversibly tune the dimensionality (n) by modulating the strength and number of H-bonds in the system. H-bonding was controlled by exposure to solvent vapor (solvatochromism) or temperature change (thermochromism), which shuttles FAX salt pairs between the FAn+1PbnX3n+1 domains and adjacent FAX “reservoir” domains. Unlike traditional chromic materials that only offer a single-color transition, FAn+1PbnX3n+1 films reversibly switch between multiple colors including yellow, orange, red, brown, and white/colorless. Each colored phase exhibits distinct optoelectronic properties characteristic of 2D superlattice materials with tunable quantum well thickness.

## Introduction

Metal halide perovskite (MHP) materials have captured the imagination of the scientific community1,2,3,4,5. The coexistence of crystalline-like electronic band structure and liquid-like physical properties of MHP materials endows them with long carrier lifetimes, long carrier diffusion lengths, and exceptional defect tolerance to enable an array of exciting optoelectronic applications6. However, it is challenging to prevent changes in phase or composition of these “crystalline liquids7” even in benign conditions. Despite issues with stability upon exposure to humidity, heat, and light8,9,10, MHPs have enabled solar cells with a record power conversion efficiency (PCE) > 25%11.

Three-dimensional (3D) MHPs are composed of corner-sharing [MX6]4− octahedra (M = Pb2+, Sn2+; X = I, Br, Cl) that form an isotropic inorganic framework separated by A-site organic (methylammonium (MA), formamidinium (FA), etc.) or inorganic (alkali metal) monovalent cations. 2D MHPs also exhibit corner-sharing [MX6]4− octahedra but only in two dimensions with the third dimension separated in space by the A-site cation12,13,14. 2D MHPs are classified as Ruddlesden-Popper15 or Dion-Jacobson16,17 phases of the general formula A′2An−1MnX3n+1 or A′An−1MnX3n+1, respectively, where A′ = 1+ or 2+ cation, A = 1+ cation, and n = 1, 2, 3, … ∞ is the number of connected 2D octahedra layers.

Chromogenic compounds change visible color when subjected to an external stimulus such as light, temperature, electric potential, solvent/vapor, or mechanical forces18,19,20. Materials that chromogenically change under these stimuli are classified as photochromic, thermochromic, electrochromic, solvatochromic, and mechanochromic, respectively18. Realizing reversible chromism in MHPs unlocks a new class of functional materials that couples a dynamic element to their remarkable optoelectronic properties. We envision dynamically tunable semiconductors to have applications that span switchable photovoltaics21,22 to energy storage23 and neuromorphic computing24. To date, there are two recognized mechanisms for reversible chromism in MHP materials: (1) crystal phase transformation22 and (2) molecular intercalation21. Both of these mechanisms have enabled the first examples of switchable photovoltaic windows21,22, which circumvent the fundamental trade-off between power conversion and visible light transmittance of traditional photovoltaic windows25.

MHPs are inherently thermochromic materials exhibiting significant optical changes induced by crystal phase transitions between the α-phase, a black high-symmetry perovskite phase composed of corner-sharing [MX6]4− octahedra, and the δ-phase, a yellow-to-colorless non-perovskite hexagonal or orthorhombic phase composed of face- or edge-sharing [MX6]4− octahedra, respectively26,27,28. Utilizing this phase transformation, the mixed-halide perovskite CsPbI0.5Br2.5 was employed in switchable photovoltiac window that achieved a 4.69% PCE with a phase transition temperature of 105 °C22. However, it is challenging to achieve transition temperatures below 100 °C for thermochromic window applications, and the smaller thermodynamic driving force at low temperature results in many hours for a complete phase transition22. In contrast, exposure of MHPs to vapor molecules that interact with the lattice can greatly decrease the temperature necessary for chromogenic behavior and improves transition speeds to seconds or minutes instead of hours as a result of the low formation/dissociation energy inherent in MHPs29,30,31. We have shown previously that exposure of MAPbI3 to methylamine vapor generates the clear MAPbI3•xCH3NH2 complex, which can be switched back to black MAPbI3 when heated with solar illumination21. Others have shown that room temperature solvatochromism is possible through the intercalation of ethanol into 2D OA2MAPb2I732 or by forming reversible hydrates for the transition between 3D MAPbBr3 and 0D MA4PbBr6•2H2O33. FA-based MHPs, unlike MA analogues, do not exhibit hydrate phases. Instead, exposure of α-FAPbI3 to H2O catalytically converts the film into δ-FAPbI3 by interacting with the anisotropically strained (111) α-FAPbI3 lattice plane34,35,36.

In this work, we synthesize composite films composed of layered FA-based MHPs of the general formula FAn+1PbnX3n+1 (X = I, Br) and their mixed-halide compositions. We leverage their liquid-like physical properties to demonstrate a third mechanism of dynamic chromism in MHPs through reversible layer formation and coalescence to form compounds that span 2D FA2PbX4 (n = 1) to 3D α-FAPbX3 (n = ∞) and finally 1D δ-FAPbI3. Reversible chromism is enabled by a second “reservoir” phase in the film composed of excess FAX salt, which allows FAX to reversibly shuttle between the reservoir and MHP layers. The mechanism is controlled by modulating the strength and number of H-bonds between the reservoir, MHP, and solvent vapor. Unlike previous reports on switchable MHPs that only switch between a single dark and a single light color21,22, our composite FAn+1PbnX3n+1 films reversibly switch between a continuum of colors spanning yellow, orange, red, brown, and white/colorless. The colored phases are 2D superlattice materials with tunable quantum well thickness.

## Results

### Synthesis of layered formamidinium metal halide perovskites

Synthesis methods for free-standing powder and thin films of layered formamidinium metal halide perovskites were developed. We synthesized FAn+1PbnX3n+1 powder by ball-milling a mixture of 4:1 FAX:PbX2 for 60 min in an inert atmosphere. Wide-angle X-ray scattering (WAXS) data shows that FAn+1PbnI3n+1 powder exhibits Bragg diffraction peaks that correspond to a mixture of 2D FA2PbI4 (n = 1) with staggered octahedral layers and 3D α-FAPbI3 (3C/3R) that corresponds to n ≥ 2 (Supplementary Fig. 1). Though predicted to exist37, we believe this is the first report of iodide compositions of FAn+1PbnX3n+1, and our WAXS results are in excellent agreement with previously reported MA2PbI438 and FA2PbBr439. Several different structures have been observed during the formation of FA-based halide perovskites, including 2H, 4H, 6H, 3C, and 3R structures (Supplementary Fig. 2)40. Our WAXS data eliminates any significant contributions from hexagonal structures (2H, 4H, 6H). In the FAn+1PbnX3n+1 compounds observed here, FA+ molecules separate the 2D layers rather than the long-chain or bulky cations typically used in other Ruddlesden-Popper phases, such as butylammonium (13.4 Å), phenylethylammonium (16.6 Å), and hexylammonium (18.4 Å)41,42. Here we observe a smaller interlayer spacing of 8.9 Å, determined from the (001) peak of FA2PbI4, which is approximately the length of two FA+ molecules (8.2 Å, see Methods section).

We produce functional thin films and expand to bromide alloys by developing a scaffold composite composed of FAn+1PbnX3n+1, an FAX reservoir, and a porous Al2O3 nanoparticle scaffold (Fig. 1a). Composite FAn+1PbnX3n+1 films are synthesized by spin-coating a precursor solution containing 3 M FAX and 0.75 M PbX2 (4:1 FAX:PbX2; X = I, Br) in DMSO onto a 1.58 ± 0.02 μm-thick Al2O3 scaffold. FAn+1PbnX3n+1 domains are formed by annealing the spin-coated film at 60 °C for 10 min. WAXS of composite FAn+1PbnX3n+1 films (Fig. 1b) match FAn+1PbnI3n+1 powder produced by ball-milling (Supplementary Fig. 1) and both exhibit a mixture of Bragg diffraction peaks that correspond to 2D FA2PbX4 (n = 1) with staggered octahedral layers and 3D α-FAPbX3 (3C/3R). Specifically, we observe Bragg diffraction peaks at 0.703 Å−1, 1.400 Å−1, 2.040 Å−1, and 2.095 Å−1 for 100% I and 0.738 Å−1, 1.478 Å−1, 2.157 Å−1, and 2.198 Å−1 for 100% Br that correspond to the (001), (002), (201), and (003) planes of 2D FA2PbX4 (n = 1) (Fig. 1b, asterisks). The 100% Br sample exhibits peaks shifted to higher Q due to the smaller lattice constant associated the bromide anion.

The optically active crystalline FAn+1PbnX3n+1 (X = I, Br) domains are composed of predominantly n = 1 and n = 2 layers. FAn+1PbnX3n+1 domains exhibit compositionally tunable optical properties that vary linearly as the halide ratio is varied from 100% iodide to 100% bromide (Fig. 1c, d) with two absorption peaks: (1) a strong excitonic peak tunable between 450 and 360 nm (circles) and (2) an absorption edge tunable between 500 and 390 nm (squares) that correspond to n = 1 and n = 2 layers, respectively. The optical properties observed for composite FAn+1PbnX3n+1 films are consistent with other 2D MHPs41,43,44,45,46.

### Reversible chromism in layered FA-based MHPs

Composite FAn+1PbnX3n+1 films show a brilliant array of reversible coloration upon exposure to solvent vapor. The visual appearance of composite FAn+1PbnX3n+1 films range from colorless to yellow, orange, red, and brown (Fig. 1e). We attribute the mechanism of color change to a dynamic equilibrium between FAX salt pairs intercalated into the FAn+1PbnX3n+1 domain or shuttled to an adjacent amorphous “reservoir” domain composed of excess FAX (Fig. 1e). The equilibrium is described by Eq. 1 (see Supplementary Note 1 for a derivation of q):

$${\mathrm{FA}}_{{\mathrm{n}} + 1}{\mathrm{Pb}}_{\mathrm{n}}{\mathrm{X}}_{3{\mathrm{n}} + 1} \leftrightarrow {\mathrm{FA}}_{{\mathrm{n}} + 1 - q}{\mathrm{Pb}}_{\mathrm{n}}{\mathrm{X}}_{{\mathrm{3}}n + 1 - q} + {\mathrm{qFAX}}$$
(1)
$$n = 1,2,3, \ldots \infty ;q = \frac{1}{{n(n + 1)}}$$

The dynamic equilibrium is shifted by modulating the strength and number of H-bonds between solvent molecules, reservoir, and MHP. This insight allows us to design composite materials composed of FAn+1PbnX3n+1 domains that change color in response to solvent vapor (solvatochromism) or temperature (thermochromism) by reversibly forming compounds that span 2D FA2PbX4 (n = 1) to 3D α-FAPbX3 (n = ∞) and finally 1D δ-FAPbI3 (Fig. 2).

There are three main drivers in the design of composite thin films: (1) FAn+1PbnX3n+1 domains must be accessible to solvent vapor, (2) a reservoir phase must be present, and (3) the solvent vapor must interact favorably with FAn+1PbnX3n+1. In order to provide solvent access, FAn+1PbnX3n+1 domains are formed in a mesoporous Al2O3 nanoparticle scaffold. The scaffold limits the size of the FAn+1PbnX3n+1 domains and provides a pathway for solvent vapor transport. The reservoir phase is formed by using an excess of FAX relative to PbX2 (>3:1 FAX: PbI2). Solvent molecules and water in the composite film are maintained by annealing at low temperatures (60 °C) in a 40% relative humidity (RH) atmosphere without exposure to dry-air flow. A detailed discussion and explanation for composite FAn+1PbnX3n+1 film formation is supplied in Supplementary Note 2 and Supplementary Figs. 39. When assembled properly, composite films will reversibly change color rapidly (<1–20 min depending on solvent vapor flow rate) and over many cycles (>10). Though ball-milled powder samples show a chromogenic response to solvent vapor, the transitions are slower (30 min–1 h) with limited reversibility (Supplementary Fig. 10).

The final design criterium is choice of solvent vapor. Reversible chromism of composite FAn+1PbnX3n+1 films is strongly dependent on the affinity of the solvent vapor to form H-bonds with the FAX reservoir and FAn+1PbnX3n+1 constituents. A variety of solvent vapors were used to highlight the dependence on H-bonding (Supplementary Fig. 11). Chloroform and dichloromethane (DCM) have Lewis acidic protons that are H-bond donors but have no significant H-bond acceptor character. Tetrahydrofuran (THF) and pyridine have oxygen or nitrogen Lewis basic groups, respectively, that are H-bond acceptors. Composite FAn+1PbnX3n+1 films exposed to chloroform, DCM, or THF do not noticeably change color, whereas pyridine bleaches the film to colorless. The stronger Lewis basicity of the pyridine compared to THF leads to solvation and complex formation with [PbX6]4− to form isolated octahedra. The ability of the solvent to both donate and accept H-bonds is critical for reversible switching to occur. Solvent vapors such as water or alcohols (methanol, ethanol, and isopropyl alcohol) with H-bond-active hydroxyl groups will deeply color composite FAn+1PbnX3n+1 films from yellow to orange, red, and brown (Supplementary Fig. 11).

### Molecular interactions in reversible chromism

H-bonds are the thermodynamic driving force for the reversible chromism in composite FAn+1PbnI3n+1 films. Chromism is dependent on both the strength and number of H-bonds. For instance, color change induced by exposure to solvent vapor (solvatochromism) may be reversed by increasing the temperature of the film (thermochromism) if the vapor concentration is held constant. The thermochromic effect is a function of the strength of H-bonding in the system, as the relative strength of H-bonds is weakened when heated and strengthened when cooled. We observe this effect with only mild conditions where a bleached film will rapidly (<10 s) convert to brown upon heating the film to 35 °C (Supplementary Fig. 12), which nicely resides in the desirable range for thermochromic window applications21.

The remainder of the discussion centers around chromism induced by a change in the number of H-bonds, rather than strength, to manipulate the thermodynamic equilibrium of Eq. 1. We control the number of H-bonds by either changing the relative amount of the FAn+1PbnX3n+1 phase to the reservoir phase or by changing the concentration of solvent vapor in the environment. We chose FAn+1PbnI3n+1/water vapor as a model system since water vapor affords facile control over RH (concentration) compared to the partial pressure of other solvents and fast solvatochromic (hygrochromic) switching of <1–20 min depending on water vapor flow rate. A switching time of <7 s is shown in Supplementary Movie 1. We believe these observations are representative of the underlying mechanism, regardless of choice of chemical system.

We probe molecular interactions in the FAn+1PbnI3n+1/water vapor model system by varying the RH between 17 and 83% RH in conjunction with in-situ diffuse-reflectance infrared Fourier transform spectroscopy (DRIFTS). The DRIFTS spectrum collected at 17.3% RH clearly shows vibrational modes corresponding to the components of the reservoir. The FAI is represented by N–H stretching modes between 3400 and 3200 cm−1 and C–N asymmetric stretching at 1716 cm−1 correspond to the FA+ cation47. We also observe DMSO, H2O, and the Al2O3 scaffold (Fig. 3a, black spectrum): C–H bending modes between 1400 and 1300 cm−1, S=O stretching at 1056 cm−1, and C–H rocking at 1028 cm−1 corresponding to DMSO48; H–O–H bending at 1630 cm−1 and O–H stretching at 3510 cm−1 corresponding to intermolecularly bound H2O49,50; and Al-O stretching between 1000 and 500 cm−1 corresponding to the Al2O3 scaffold51.

We increase the number of H-bonds by increasing RH from 17.3% to 83.1%. The film changes color from yellow to orange to brown to white/colorless (Fig. 3c, top row), and the DRIFTS spectra correspondingly undergo several changes. Before a change in color occurs (RH < 70%), the increased intensity of the O–H stretching mode located between 3550 and 3200 cm−1 suggests increasing amounts of H2O are incorporated into the film and are intermolecularly H-bonded with other H2O molecules or with FAI in the reservoir49,50. The isosbestic point at 3688 cm−1 signifies a reduction in scaffold-bonded H2O (>3688 cm−1) and an increase in intermolecularly H-bonded H2O or hydrated FAI (3550–3200 cm−1, Fig. 3a)48.

We observe a threshold value for chromism at c.a. 70% RH, which results in more dramatic changes to the DRIFTS spectra. The H-bond interactions shift the thermodynamic equilibrium (Eq. 1) from the FAn+1PbnI3n+1 domains to the FAI reservoir, indicated by an increase in spectral intensity, peak shifting, and peak broadening at RH > 70%. The N–H stretching modes broaden and blueshift, indicating the bonding environment of FA+ is changing over time as it is shuttled from the FAn+1PbnX3n+1 domain to the reservoir (Fig. 3b). The broadening is accompanied by a shoulder that grows in at 1730 cm−1 (Fig. 3b). The blueshift at high RH indicates both shortening and strengthening of the N–H bond52 as a result of H-bond formation. Both S=O stretch and C–H rocking modes of DMSO remaining in the film redshift at higher RH values, which is characteristic with H-bonding to water and a distinct change in bonding environment (Fig. 3b)48. Although solvatochromism in our ball-milled powder synthesized without solvent (Supplementary Fig. 10) shows that DMSO is not crucial to the reversible switching mechanism, DMSO may facilitate switching by providing H-bond acceptor sites. The molecular interactions observed in DRIFTS during color change from yellow to orange, brown, and colorless are reversed upon removal of water vapor (Supplementary Fig. 13). Removal of H-bond interactions shift the thermodynamic equilibrium (Eq. 1) from the reservoir back to the FAn+1PbnI3n+1 domains.

The reservoir volume also dictates the number of molecular interactions and the resulting color of the FAn+1PbnI3n+1 composite. Hygrochromic properties are only observed when the FAI:PbI2 ratio is >3.0, which suggests that enough FAI must be present to form both the reservoir and the layered FAn+1PbnI3n+1. As the FAI:PbI2 ratio increases, the number of molecular interaction sites increases in the film. The color of the film changes from red to orange to yellow as the equilibrium is pushed to thinner layers (smaller n) with higher FAI:PbI2 ratios. Thus, by controlling the number of molecular interactions through varying both the RH and the FAI:PbI2 ratio, the chromic response of the film can be extensively controlled with a wide variety of colors obtainable, including yellow, orange, red, brown, dark brown, and white/transparent. We note the 2D nature of our films lead to significantly improved moisture stability as evidenced by repeated and reversible color cycling between 20 and 82% RH, storage at ≤40% RH in air for months, and storage at 75% RH in air for over one month.

### Structural evolution due to molecular interactions

We probe the structural response of FAn+1PbnI3n+1 composites induced by molecular interactions using in-situ WAXS experiments. In-situ WAXS experiments nicely illustrate the reversible transformation from predominantly FAn+1PbnI3n+1 domains with n = 1, 2 to α-FAPbI3 (n = ∞) and finally δ-FAPbI3. Starting at ambient RH, the films are exposed to humid air controlled at 82% RH. Dry conditions (~40% RH) are achieved by flowing Helium. The films are cycled through humid/dry conditions three times during collection of in-situ WAXS data (Fig. 4a). Flowing humid air at 82% RH causes Bragg peaks corresponding to FA2PbI4 and α-FAPbI3 to gradually disappear over 10.5 min and 18 min, respectively, while Bragg peaks corresponding to δ-FAPbI3 begin to emerge at 9 min. Disappearance of FA2PbI4 peaks in the WAXS pattern before α-FAPbI3 peaks disappear suggests n = 1 layers coalesce to form layers of n > 1.

Surface energy and strain are known to stabilize small or 2D grains of α-FAPbI3, whereas bulk crystals thermodynamically favor the non-perovskite δ-FAPbI3 hexagonal phases34,53. The strain of the domains is reduced as the domain grows and eventually transforms into the thermodynamically favored δ-FAPbI3 phase. We observe a strain-induced shift in the (100) peak of α-FAPbI3 from 0.995 Å−1 to 0.991 Å−1 (Δ = 0.004 Å−1) as RH is increased due to a relaxation of the growing α-FAPbI3 crystal between FAI layers (Fig. 4c)34. In contrast to the (100) peak of α-FAPbI3 at 0.995 Å−1, the (100) peak of δ-FAPbI3 at 0.838 Å−1 does not exhibit a shift in Q due to the relatively nonexistent strain in the 1D δ-FAPbI3 lattice (Fig. 4d)34. We note that the δ-FAPbBr3 phase is not observed at high RH (Supplementary Fig. 14) because δ-FAPbBr3 is only stable below −8 °C (265 K)54.

The WAXS data clearly shows hygrochromism in composite FAn+1PbnI3n+1 films is not due to recrystallization of the material (dissolution of one phase followed by precipitation of another), but rather by reversible FAI shuttling between grains that maintain their initial size. We tracked the evolution of the (100) peak area for each species as a function of time exposed 82% RH (Fig. 4e) and quantified the size of the FAn+1PbnI3n+1 domains using Scherrer analysis (Fig. 4f)55. The α-FAPbI3 (100) peak area decreases while the δ-FAPbI3 (100) peak area increases with an intersection occurring between 12-15 min, indicating the transformation of a single grain rather than the formation of a new one. 2D WAXS data collected during phase evolution shows the grains are polycrystalline and do not become textured over time (Supplementary Fig. 15), and the size of the domains remain constant as the FAn+1PbnI3n+1 domains evolve with increasing RH (Fig. 4f). After exposure to flowing humid air at 82% RH until the film is white/colorless, exposure of flowing dry He reverses the observed phase transformations: the (100) peak of δ-FAPbI3 at 0.838 Å−1 disappears while the (100) peak of α-FAPbI3 at 0.995 Å−1, and the (001), (002), (201), and (003) peaks of FA2PbI4 at 0.703 Å−1, 1.400 Å−1, 2.040 Å−1, and 2.095 Å−1 reemerge (Fig. 4a). As we remove H2O from the film, FAI is re-inserted into the α/δ-FAPbI3 domains to re-form the layered FAn+1PbnI3n+1 structure.

### Dynamic control of optoelectronic properties

Optical spectroscopy is used to probe the optical properties of the FAn+1PbnI3n+1 domains as the n = 1 material coalesces to higher dimensional structures (n > 1). Our optical absorption and photoluminescence (PL) data confirm each observed color is a FAn+1PbnI3n+1 mixture with multiple thicknesses that span n = 1 to n = ∞ (Fig. 5a). Varying the RH changes the relative ratios of n as the FAn+1PbnI3n+1 domains trend toward thicker layers with increasing RH. Increasing the RH up to 78% results in a decrease of the excitonic peak at 2.79 eV and an increase in the absorption edge at 2.51 eV as well as the emergence of new absorption edges located at 2.30 eV, 2.07 eV, and 1.77 eV (Fig. 5a). Subjecting the film to 80% RH causes a decrease in all peaks as the film transforms to white/colorless. A dramatic absorption change is observed upon reaching 82% RH in which absorbance in the visible region is greatly reduced and a strong absorbance peak located at 3.18 eV emerges that is consistent with formation of hexagonal δ-FAPbI328,56. This large distribution of absorption properties obtainable by varying RH is reflected in the CIE 1976 L*a*b* coordinate space that is representative of the human perception of color (Fig. 5b).

Discrete optical transitions observed in the absorbance spectra occur due to the separation or coalescence of 2D octahedra layers. The optical bandgap of 2D FAn+1PbnI3n+1 materials increases monotonically as n approaches 1 due to formation of minibands in the quantum well superlattice structure that emerges from alternating layers of formamidinium and connected lead halide octahedra layers (Fig. 6a). The optical bandgap increase relative to 3D α-FAPbI3 is written as:

$$E_{{\mathrm{g}},2{\mathrm{D}}} = E_{{\mathrm{g}},3{\mathrm{D}}} + E_{\mathrm{e}} + E_{\mathrm{h}}$$
(2)

where $$E_{{\mathrm{g}},3{\mathrm{D}}} = 1.52\,{\mathrm{eV}}$$ is the bulk bandgap of α-FAPbI357 and $$E_{{\mathrm{e}}({\mathrm{h}})}$$ is the minimum energy of the lowest-energy miniband. We determine $$E_{{\mathrm{e}}({\mathrm{h}})}$$ by adapting the Kronig–Penney (KP) model58 for an electron (hole) in a one-dimensional periodic potential. The KP-like model has successfully described conventional III–V superlattice structures59,60 and has recently been applied to MHP materials61,62,63. The dispersion relation for electrons (holes) in the x direction is:

$$\cos \left( {\beta L_{{\mathrm{qw}}}} \right)\cosh \left( {\alpha L_{\mathrm{b}}} \right) + \frac{1}{2}\left( {\gamma - \gamma ^{ - 1}} \right)\sin \left( {\beta L_{{\mathrm{qw}}}} \right)\sinh \left( {\alpha L_{\mathrm{b}}} \right) = {\mathrm{cos}}({\mathbf{k}}(L_{{\mathrm{qw}}} + L_{\mathrm{b}}))$$
(3)

where $$L_{{\mathrm{qw}}}$$ is the width of the metal halide quantum well layer, and $$L_{\mathrm{b}}$$ is the width of the barrier layer composed of formamidinium. Both widths are determined from XRD studies ($$L_{{\mathrm{qw}}}$$ = 0.624 nm and $$L_{\mathrm{b}}$$ = 0.690 nm). k is the superlattice wavevector, which is bound by $$- \pi (L_{{\mathrm{qw}}} + L_{\mathrm{b}})$$ and $$\pi (L_{{\mathrm{qw}}} + L_{\mathrm{b}})$$. The minimum energy of the lowest-energy miniband occurs when k = 0. For simplicity, we define: β2 = 2mqw,e(h)Ee(h)−2 and α2 = 2mb,e(h)(Ve(h) – Ee(h))−2. The effective masses of electrons and holes are assumed to be the same for the quantum well ($$m_{{\mathrm{qw}}} = m_{{\mathrm{qw}},{\mathrm{e}}} = m_{{\mathrm{qw}},{\mathrm{h}}}$$) and barrier ($$m_{\mathrm{b}} = m_{b,{\mathrm{e}}} = m_{{\mathrm{b}},{\mathrm{h}}}$$). We apply literature values for the effective mass in the metal halide layer57 (mqw = 0.1m0, where m0 is the rest mass of an electron) and the barrier layer64 ($$m_{\mathrm{b}} = m_{{\mathrm{qw}}}/0.4$$). The barrier height (Ve(h)) for the electrons (holes) is an expression of the bandgap of the formamidinium layers that separate metal halide layers. For simplicity, we assume $$V_{\mathrm{e}} = V_{\mathrm{h}}$$. The expression for γ is modified from the classic KP model ($$\gamma = \alpha /\beta$$) to take into account the difference in effective mass of the electrons (holes) in the quantum well and barrier layers: $$\gamma = {\upalpha}m_{{\mathrm{qw}},{\mathrm{e}}({\mathrm{h}})}/\beta m_{{\mathrm{b}},{\mathrm{e}}({\mathrm{h}})}$$.

PL shows discrete miniband transitions from the optical bandgaps of a mixture of FAn+1PbnI3n+1 thicknesses (n) that increase as the RH increases (Fig. 6b). As the RH increases to 80%, the PL peak shifts from 2.28 eV to 1.71 eV. It is notable that the PL is tuned in the visible region over a 0.56 eV window by simply varying the RH. The PL is quenched upon reaching 82% RH, which is consistent with the transition to δ-FAPbI328. We successfully reproduce our experimental PL by numerically solving Eq. 2 for $$E_{{\mathrm{e}}({\mathrm{h}})}$$ to produce $$E_{{\mathrm{g}},2{\mathrm{D}}}$$ as a function of quantum well width ($$L_{{\mathrm{qw}}}$$) (Fig. 6c). The thickness of a monolayer in FAn+1PbnI3n+1 is 0.624 nm. The KP-like model nicely reproduces our optical bandgap data determined from PL measurements for n > 2. A potential barrier height of $$V_{{\mathrm{e}}({\mathrm{h}})}$$ = 1.2 eV best fits the data, which is a reasonable bandgap for a FAI salt layer ($$E_{{\mathrm{g}},{\mathrm{FAX}}} = E_{{\mathrm{g}},3{\mathrm{D}}} + e\left( {V_{\mathrm{e}} + V_{\mathrm{h}}} \right)$$ = 3.92 eV) between the lead halide sheets. The data is captured by varying the barrier height between 0.8 and 1.6 eV. We posit the barrier height will be affected by the presence of water vapor interacting with the system. The model is also in good agreement with previous work on layered MHP materials, where butyl groups separate methylammonium lead halide layers43. The monolayer (n = 1) case is not described well by our model, in addition to data from Kanatzitis43,65 and others66. The deviation is known to occur due to the increasing dielectric confinement, which increases the exciton binding energy in n = 1 materials67,68,69. Intuitively, the bandgap of a lead iodide monolayer is no longer represented well by the bulk properties of α-FAPbI3.

We expect sizable differences in the photoconductivity of each phase as the FAn+1PbnI3n+1 grains transition between 2D FAn+1PbnI3n+1, 3D α-FAPbI3, and 1D δ-FAPbI3 based on differences in excitonic character and binding energy. We measure these differences using contactless flash-photolysis time-resolved microwave conductivity (fp-TRMC)70,71 by photoexciting composite FAn+1PbnI3n+1 films at 450 nm and at the lowest possible laser fluences (ca. 1011–1012 photons cm−2) to obtain satisfactory signal-to-noise while avoiding higher-order recombination effects associated with high charge densities (Supplementary Fig. 16). Indeed, we observe a significant change in the yield-mobility product (ϕΣμ) when comparing films exposed to 20% RH (yellow) and those to 70–78% RH (orange and brown). The orange and brown phases demonstrate ca. 5–6 times higher ϕΣμ values compared to the yellow phase (Table 1, Supplementary Table 1), which is likely due in part to increases in charge yield (ϕ) as the exciton binding energy decreases for more 3D connected (higher n) domains. We believe electron and hole mobilities (represented by Σμ) increase concomitantly with charge yield72 and argue the ϕΣμ values of the orange phase are closer to the brown phase likely due to an appreciable density of n > 4 domains that dominate the fp-TRMC signal over smaller (n = 1–3) layers. Putting limits on the sum of the hole and electron mobilities for these compounds, we estimate that values of 0.003–0.3 and 0.019–1.9 cm2 V−1 s−1 are possible for yellow and brown phases, respectively, assuming charge yields between 100 and 1%.

ϕΣμ values obtained for the brown (most photoconductive) phase were comparable to those obtained in other works. (BA)2(MA)n-1PbnI3n+1 (n = 3–4) was measured to have ϕΣμ = 0.03–0.04 cm2 V−1 s−173. However, these films were measured at up to 2 orders of magnitude higher fluence (ca. 1013 photons cm−2) than the FAn+1PbnI3n+1 composite films measured here (ca. 1011 photons cm−2). As such, the values for BA-based 2D Ruddlesden-Popper MHPs obtained from that work are likely higher than reported since the low fluence regimes, where ϕΣμ values exhibit little-to-no fluence-dependence, were not measured. Indeed fp-TRMC measurements on (BA)2(MA)n−1PbnI3n+1 (n = 4–5) by Gélvez-Rueda et al.72 at fluences similar to this work demonstrated ϕΣμ values ca. 10–30 cm2 V−1 s−1, over three orders of magnitude larger than the FAn+1PbnI3n+1 MHPs studied here. Measurements on (MA)2Pb(SCN)2I2 (n = 1)74 and (BPEA)2(MA)Pb2I7 (n = 2)75 yield ϕΣμ values ca. 1 cm2  V−1 s−1 which is ca. 50 times greater than FAn+1PbnI3n+1. A less dramatic difference was found when comparing the range of amplitude-weighted average free charge lifetimes measured for the brown phase (ca. 20–90 ns) to (MA)2Pb(SCN)2I2 (n = 1, ca. 100 ns)74 and (BA)2(MA)n-1PbnI3n+1 (n = 4–5, ca. 100–200 ns)72. Our scaffold-impregnated films likely have random crystallite orientation, which will lower our ϕΣμ values relative to some of the literature discussed here73. Only free charges within crystallites oriented parallel to our linearly polarized microwave probe will absorb appreciably. The variation of free charge lifetimes (and to some degree ϕΣμ) for the brown phase on a film-to-film basis could be due to differences in the density of crystallites and crystallite size distribution based on modest differences in film processing conditions, such as scaffold thickness and Al2O3 nanoparticle size dispersity used in the scaffold. We were not able to measure ϕΣμ values of the white/colorless phase, as the lowest fluences were sufficient to convert this phase into the brown phase via heat-induced dehydration mechanism (Supplementary Fig. 17) that we have observed at temperatures as low as 35 °C (Supplementary Fig. 12).

## Discussion

We synthesized layered FA-based MHPs of the general formula FAn+1PbnX3n+1 (X = I, Br) and their mixed-halide compositions and show reversible multicolor chromism based on two different stimuli: solvent vapor and temperature. We design composite FAn+1PbnX3n+1 films by synthesizing FAn+1PbnX3n+1 domains adjacent to a FAX “reservoir” composed of excess FAX salt that allows FAX salt pairs to shuttle between FAn+1PbnX3n+1 domains and the FAX reservoir. The interactions between each species results in a structural equilibrium between 2D FAn+1PbnX3n+1 layers, 3D α-FAPbX3 domains, and 1D δ-FAPbI3 domains that can be controlled through modulating the strength and number of H-bonds between the reservoir, MHP, and solvent vapor. Unlike previously reported chromic MHPs that only switch between a single dark and a single transparent phase, these films reversibly switch between multiple colors including yellow, orange, red, brown, and white/colorless. The optical transitions are captured by a Kronig–Penney-like model that describes photoluminescence of the material as metal halide octahedra layers separate and coalesce into superlattices of varied thickness. Our work will enable a new generation of functional materials that couple tunable and reversible chromism with the extraordinary optoelectronic properties of MHP materials.

## Methods

### Materials

Aluminum oxide nanoparticles (Al2O3, <50 nm particle size, 20 wt% in isopropanol) and dimethyl sulfoxide (DMSO, anhydrous, ≥99.9%) were purchased from Sigma-Aldrich; lead(II) iodide (PbI2, 99.99%) from TCI; formamidinium iodide (FAI) from GreatCell Solar Materials.

### FA2PbI4 powder preparation

Powders were prepared by weighing a 4:1 molar ratio of FAI:PbI2 in a nitrogen glovebox, sealing in a hardened stainless-steel vial, then ball-milling in a SPEX high energy ball mill for 60 minutes. The vial was then transferred back to the glovebox for recovery of the milled powders. Powders were not exposed to air/humidity until hygrochromic tests were conducted.

### FAn+1PbnX3n+1 composite film preparation

Glass substrates (25 mm × 25 mm × 1 mm) were sonicated in isopropanol (IPA) for 10 min and blown dry with N2. The substrates were then treated in a UV-ozone cleaner for 10 min before spin-coating 200 µL of 16 wt% Al2O3 nanoparticles (20–40 nm) in IPA at 3000 rpm for 30 s. The resulting film was annealed at 150 °C for 5 min followed by 500 °C for 25 min. This process yielded a 1.58 ± 0.02 μm-thick Al2O3 scaffold. The Al2O3 NP precursor can be diluted with IPA to yield thinner films as shown in Supplementary Fig. 18. Next, 75 µL of a precursor solution containing 3 M FAX and 0.75 M PbX2 (4:1 FAX:PbX2) in DMSO was spin-coated at 4000 rpm for 30 s followed by annealing at 60 °C for 10 min. We note here that precursor concentration must be optimized for a given scaffold thickness. Optimal precursor concentrations based on PbX2 ([FAX] = 4[PbX2]) for a given scaffold thickness are as follows: 0.7–1 M PbX2 for 1.0–1.6 µm thick, 0.4–0.6 M PbX2 for 600–1000 nm thick, and 0.3–0.4 M PbX2 for 300–600 nm thick. Both spin-coating and annealing were performed in air while maintaining the relative humidity (RH) between 40 and 45%. The substrates were stored in a drawer (<20% RH) or desiccator in air until needed. See Supplementary Note 2 for a discussion on the impact of processing conditions on composite FAn+1PbnX3n+1 film formation.

### Humidity control

Humidy-controlled experiments were performed in a glovebox equipped with a humidity controller connected to a humidity sensor (error of ± 3%), humidifier, and dehumidifier unless noted elsewhere. The controller maintains the humidity with an accuracy of ± 0.1–0.3% The humidity controller was calibrated to saturated KBr in water, which exhibits a relative humidity (RH) of 81.67 ± 0.21% at 20 °C76. We reported RH throughout this study; however, RH is different at sea level compared to high altitudes (NREL, Golden, CO, this study). We converted the RH’s reported in this study to absolute humidities (AH’s) using 25 °C and 630 mmHg as a typical barometric pressure of NREL in Golden, CO (Supplementary Table 2).

### Optical characterization

Absorbance was collected with a photodiode array Hewlett-Packard 8453 UV-vis spectrometer with Al2O3 scaffold and glass absorbance subtracted from all spectra. Steady-state PL measurements were taken using a home-built system. Samples were excited using a Thorlabs fiber-coupled 405 nm light-emitting diode (LED) pulsed at 10 Hz using a Thorlabs DC2200 LED driver. Visible detection was made using an Ocean Optics OceanFX spectrometer. Spectra were stitched using a LabVIEW program developed in-house. Detector calibration was done using an Ocean Optics HL-2000-HP blackbody lamp. Prior to data acquisition, the substrate was sealed into an air-tight optical holder filled with the desired RH. Optical measurements were collected on films prepared with a 326 ± 22 nm thick Al2O3 NP scaffold.

### Structural characterization

In situ X-ray diffraction data was collected at the Stanford Synchrotron Radiation Light Source (SSRL) at beamline 11-3. The samples were measured at an incident angle of 3 degrees and an incident X-ray wavelength of 0.9744 Å. A Rayonix MX225 2D detector was used to collect data, and a LaB6 standard used to calibrate the data. The RH in the sample chamber was alternated between 35% and 82% RH using a commercial room humidifier powered by a humidity controller, which was connected to a humidity sensor within the sample chamber. The humidity in the sample chamber was reduced by flowing helium gas through the chamber. Once 35% RH was reached, the humidity was increased by manually reducing the He flow until the humidity stabilized at 82% RH. The data collection were continuous except for brief interruptions for changing the sample chamber connection between the humidifier and the He. The integration time per measurement was 30 s. The data was integrated using GSAS-II77. 2θ values were calculated by converting Q data relative to Cu Kα (1.5406 Å, 8.04 eV). Scherrer analysis was performed using a κ value of 0.9 and FWHM values with error bars obtained by fitting peaks to a Voigt function. Non-synchrotron WAXS of composite films was collected in air using a Bruker D8 Discover diffractometer with GADDS 4-circle detector (General Area Detector Diffraction System) and Cu Kα (1.5406 Å, 8.04 eV) radiation. WAXS of powder was collected in air using a Rigaku Smartlab diffractometer using Cu Kα (1.5406 Å, 8.04 eV) radiation. Fast scans (ca. 2 min) were done before and after a long scan (ca. 30 min) to verify no change in the material due to beam exposure. Interlayer spacing of butylammonium, phenylethylammonium, and hexylammonium was calculated using Jmol by performing an energy minimization of the molecule, measuring the longest hydrogen–hydrogen distance, and then multiplying this distance by 2 based on the assumption that the interlayer spacing is composed of two end-to-end molecules.

### DRIFTS measurements

A Bruker Alpha FTIR spectrometer outfitted with a diffuse-reflectance infrared Fourier transform spectroscopy (DRIFTS) attachment was used in the study, and all measurements were performed in a humidity glovebox as described above. Samples were prepared as described above except Au-coated Si was used instead of glass as the substrate. DRIFTS data were collected between 350 and 4000 cm−1 with a resolution of 2 cm−1 and was atmosphere corrected. RH and temperature data were collected using a data logger with points collected every second. Each DRIFTS spectrum was collected over 45 s, so 45 individual RH and temperature points were averaged to determine the average RH and temperature of each spectrum. The RH was increased at a rate of 3.2 ± 0.2% min−1 and decreased at a rate of 1.9 ± 0.3% min−1 during data acquisition.

### fp-TRMC measurements

Our flash-photolysis time-resolved microwave conductivity (fp-TRMC) measurement system and methods has been described in detail elsewhere70,71. Photoexcitation was accomplished using a Nd:YAG (Spectraphysics Quanta Ray SP Pro 230-30H) laser with 9 W of 355 nm at 30 Hz to pump an OPO (Spectraphysics GWU PremiScan ULD/500) with output over the range of 410–2500 nm with 7 ns pulses (ca. 3 W output, varies by wavelength). Blank quartz substrates and quartz substrates with only the alumina scaffold were used to gauge any background contributions to the fp-TRMC transients and showed no appreciable response. All samples were excited at 450 nm with fluences in the range of ca. 1 × 1011 to 2 × 1015 photons cm−2 depending on the strength of the sample response and phase stability during illumination. A 399 nm long pass filter and 700 nm short pass filter were used to cut out residual 355 and 1064 nm light from the optical parametric oscillator, respectively. Maintaining the RH levels necessary to stabilize the brown phase during measurements was achieved by sealing samples in a leak-resistant microwave cavity within the humidified glovebox described previously. At higher fluences, phases held at higher RH tended to revert back to phases at lower ones, possibly due to heat-driven dehydration of the film (Supplementary Fig. 17). For this reason, the white/colorless phase could not be measured at even the lowest fluences. Phase purity was assessed by monitoring the steady-state photoluminescence for films in-situ during fp-TRMC measurements (e.g., see PL data in Supplementary Fig. 19) using a camera lens to focus emitted photons from the microwave cavity into an optical fiber that was coupled to a Princeton Instruments SpectraPro 2500i spectrometer with a liquid-nitrogen cooled CCD detector. A 500 nm long pass filter was used to filter out excitation light (450 nm) and photoluminescence spectra were typically acquired by averaging 60 seconds to monitor phase stability on a minute-to-minute basis during measurements. PL spectra were not corrected by a calibration lamp. The yellow phase was the only sample for which the entire fluence range was measured. Typical fluences for orange and brown samples were ca. 1–20 × 1011 photons/cm2. Most transients were acquired for 30,000 shots or until S/N = 10. For some yellow and orange samples with lower S/N at low fluences, up to 60,000 shots were acquired. The typical fraction of absorbed photons at 450 nm for yellow, orange, and brown phases were 99%, 99%, and 96%, respectively. Transient fitting was done using a custom global fitting routine in Igor Pro 8 using a biexponential fit. ϕΣμ values at each fluence were extracted by summing the amplitudes of the optimized fit coefficients. For each sample, an average of ϕΣμ over the lowest four-to-five fluences (i.e., regime where ϕΣμ shows little-to-no fluence dependence) were taken to represent the average yield-mobility product for that sample. These values were then further averaged over three samples to obtain the values and uncertainties reported here.

## Data availability

The data that support the findings of this study are available from the corresponding author upon reasonable request.

## Code availability

Mathematica code used to model FAn+1PbnI3n+1 optical properties is available from the corresponding author upon reasonable request.

## References

1. 1.

Sutherland, B. R. & Sargent, E. H. Perovskite photonic sources. Nat. Photon. 10, 295–302 (2016).

2. 2.

Fu, Y. et al. Metal halide perovskite nanostructures for optoelectronic applications and the study of physical properties. Nat. Rev. Mater. 4, 169–188 (2019).

3. 3.

Leijtens, T., Bush, K. A., Prasanna, R. & McGehee, M. D. Opportunities and challenges for tandem solar cells using metal halide perovskite semiconductors. Nat. Energy 3, 828–838 (2018).

4. 4.

Akkerman, Q. A., Rainò, G., Kovalenko, M. V. & Manna, L. Genesis, challenges and opportunities for colloidal lead halide perovskite nanocrystals. Nat. Mater. 17, 394–405 (2018).

5. 5.

Tennyson, E. M., Doherty, T. A. S. & Stranks, S. D. Heterogeneity at multiple length scales in halide perovskite semiconductors. Nat. Rev. Mater. 4, 573–587 (2019).

6. 6.

Miyata, K., Atallah, T. L. & Zhu, X. Y. Lead halide perovskites: crystal-liquid duality, phonon glass electron crystals, and large polaron formation. Sci. Adv. 3, e1701469 (2017).

7. 7.

Zhu, H. et al. Screening in crystalline liquids protects energetic carriers in hybrid perovskites. Science 353, 1409–1413 (2016).

8. 8.

Boyd, C. C., Cheacharoen, R., Leijtens, T. & McGehee, M. D. Understanding degradation mechanisms and improving stability of perovskite photovoltaics. Chem. Rev. 119, 3418–3451 (2019).

9. 9.

Grancini, G. & Nazeeruddin, M. K. Dimensional tailoring of hybrid perovskites for photovoltaics. Nat. Rev. Mater. 4, 4–22 (2018).

10. 10.

Dou, B. et al. Degradation of highly alloyed metal halide perovskite precursor inks: mechanism and storage solutions. ACS Energy Lett. 3, 979–985 (2018).

11. 11.

National Renewable Energy Laboratory. Best research-cell efficiencies chart, https://www.nrel.gov/pv/assets/pdfs/best-research-cell-efficiencies.20200803.pdf (2020).

12. 12.

Mitzi, D. B. In Progress in Inorganic Chemistry (ed. Kenneth D. Karlin), 1–121 (1999).

13. 13.

Saparov, B. & Mitzi, D. B. Organic-inorganic perovskites: structural versatility for functional materials design. Chem. Rev. 116, 4558–4596 (2016).

14. 14.

Gao, Y. et al. Molecular engineering of organic-inorganic hybrid perovskites quantum wells. Nat. Chem. 11, 1151–1157 (2019).

15. 15.

Gao, X. et al. Ruddlesden-Popper perovskites: synthesis and optical properties for optoelectronic applications. Adv. Sci. 6, 1900941 (2019).

16. 16.

Mao, L. et al. Hybrid Dion-Jacobson 2D lead iodide perovskites. J. Am. Chem. Soc. 140, 3775–3783 (2018).

17. 17.

Ahmad, S. et al. Dion-Jacobson phase 2D layered perovskites for solar cells with ultrahigh stability. Joule 3, 794–806 (2019).

18. 18.

Bamfield, P. Chromic Phenomena: Technological Applications of Colour Chemistry (Royal Society of Chemistry, London, 2018).

19. 19.

Lötzsch, D., Eberhardt, V. & Rabe, C. Chromogenic materials. Ullmann’s Ency. Indust. Chem. 1–26 (2016).

20. 20.

Lampert, C. M. Chromogenic smart materials. Mater. Today 7, 28–35 (2004).

21. 21.

Wheeler, L. M. et al. Switchable photovoltaic windows enabled by reversible photothermal complex dissociation from methylammonium lead iodide. Nat. Commun. 8, 1722 (2017).

22. 22.

Lin, J. et al. Thermochromic halide perovskite solar cells. Nat. Mater. 17, 261–267 (2018).

23. 23.

Kostopoulou, A., Kymakis, E. & Stratakis, E. Perovskite nanostructures for photovoltaic and energy storage devices. J. Mater. Chem. A 6, 9765–9798 (2018).

24. 24.

Yao, X. et al. Protonic solid-state electrochemical synapse for physical neural networks. Nat. Commun. 11, 3134 (2020).

25. 25.

Wheeler, L. M. & Wheeler, V. M. Detailed balance analysis of photovoltaic windows. ACS Energy Lett. 4, 2130–2136 (2019).

26. 26.

Burger, S., Ehrenreich, M. G. & Kieslich, G. Tolerance factors of hybrid organic–inorganic perovskites: recent improvements and current state of research. J. Mater. Chem. A 6, 21785–21793 (2018).

27. 27.

Bartel, C. J. et al. New tolerance factor to predict the stability of perovskite oxides and halides. Sci. Adv. 5, eaav0693 (2019).

28. 28.

Li, Z. et al. Stabilizing perovskite structures by tuning tolerance factor: formation of formamidinium and cesium lead iodide solid-state alloys. Chem. Mater. 28, 284–292 (2015).

29. 29.

Manser, J. S., Saidaminov, M. I., Christians, J. A., Bakr, O. M. & Kamat, P. V. Making and breaking of lead halide perovskites. Acc. Chem. Res. 49, 330–338 (2016).

30. 30.

Quan, L. N. et al. Ligand-stabilized reduced-dimensionality perovskites. J. Am. Chem. Soc. 140, 2649–2655 (2016).

31. 31.

Wheeler, L. M., Anderson, N. C., Bliss, T. S., Hautzinger, M. P. & Neale, N. R. Dynamic evolution of 2D layers within perovskite nanocrystals via salt pair extraction and reinsertion. J. Phys. Chem. C. 122, 14029–14038 (2018).

32. 32.

Hua, Y. et al. Ethanol induced structure reorganization of 2D layered perovskites (OA)2(MA)n-1PbnI3n+1. J. Lumin. 220, 116981 (2020).

33. 33.

Sharma, S. K. et al. Reversible dimensionality tuning of hybrid perovskites with humidity: visualization and application to stable solar cells. Chem. Mater. 31, 3111–3117 (2019).

34. 34.

Zheng, X. et al. Improved phase stability of formamidinium lead triiodide perovskite by strain relaxation. ACS Energy Lett. 1, 1014–1020 (2016).

35. 35.

Chen, Y. et al. Strain engineering and epitaxial stabilization of halide perovskites. Nature 577, 209–215 (2020).

36. 36.

Chen, T. et al. Entropy-driven structural transition and kinetic trapping in formamidinium lead iodide perovskite. Sci. Adv. 2, e1601650 (2016).

37. 37.

Fraccarollo, A., Cantatore, V., Boschetto, G., Marchese, L. & Cossi, M. Ab initio modeling of 2D layered organohalide lead perovskites. J. Chem. Phys. 144, 164701 (2016).

38. 38.

Zhu, X. et al. Vapor-fumigation for record efficiency two-dimensional perovskite solar cells with superior stability. Energy Environ. Sci. 11, 3349–3357 (2018).

39. 39.

Shin, M. et al. Low-dimensional formamidinium lead perovskite architectures via controllable solvent intercalation. J. Mater. Chem. C. 7, 3945–3951 (2019).

40. 40.

Gratia, P. et al. The many faces of mixed ion perovskites: unraveling and understanding the crystallization process. ACS Energy Lett. 2, 2686–2693 (2017).

41. 41.

Cao, D. H., Stoumpos, C. C., Farha, O. K., Hupp, J. T. & Kanatzidis, M. G. 2D homologous perovskites as light-absorbing materials for solar cell applications. J. Am. Chem. Soc. 137, 7843–7850 (2015).

42. 42.

Mao, L., Stoumpos, C. C. & Kanatzidis, M. G. Two-dimensional hybrid halide perovskites: principles and promises. J. Am. Chem. Soc. 141, 1171–1190 (2019).

43. 43.

Stoumpos, C. C. et al. Ruddlesden–Popper hybrid lead iodide perovskite 2D homologous semiconductors. Chem. Mater. 28, 2852–2867 (2016).

44. 44.

Milić, J. V. et al. Supramolecular engineering for formamidinium‐based layered 2D perovskite solar cells: structural complexity and dynamics revealed by solid‐state NMR spectroscopy. Adv. Energy Mater. 9, 1900284 (2019).

45. 45.

Yan, J. et al. Highly oriented two-dimensional formamidinium lead iodide perovskites with a small bandgap of 1.51 eV. Mater. Chem. Front. 2, 121–128 (2018).

46. 46.

Liu, Y. et al. Self-assembly of two-dimensional perovskite nanosheet building blocks into ordered Ruddlesden-Popper perovskite phase. J. Am. Chem. Soc. 141, 13028–13032 (2019).

47. 47.

Taylor, V. C. A. et al. Investigating the role of the organic cation in formamidinium lead iodide perovskite using ultrafast spectroscopy. J. Phys. Chem. Lett. 9, 895–901 (2018).

48. 48.

Wallace, V. M., Dhumal, N. R., Zehentbauer, F. M., Kim, H. J. & Kiefer, J. Revisiting the aqueous solutions of dimethyl sulfoxide by spectroscopy in the mid- and near-infrared: experiments and car-parrinello simulations. J. Phys. Chem. B 119, 14780–14789 (2015).

49. 49.

Chuntonov, L., Kumar, R. & Kuroda, D. G. Non-linear infrared spectroscopy of the water bending mode: direct experimental evidence of hydration shell reorganization? Phys. Chem. Chem. Phys. 16, 13172–13181 (2014).

50. 50.

Coker, D. F., Reimers, J. R. & Watts, R. O. The infrared absorption spectrum of water. Aust. J. Phys. 35, 623–638 (1982).

51. 51.

Liu, C., Shih, K., Gao, Y., Li, F. & Wei, L. Dechlorinating transformation of propachlor through nucleophilic substitution by dithionite on the surface of alumina. J. Soils Sediment. 12, 724–733 (2012).

52. 52.

Joseph, J. & Jemmis, E. D. Red-, blue-, or no-shift in hydrogen bonds: a unified explanation. J. Am. Chem. Soc. 129, 4620–4632 (2007).

53. 53.

Lee, J. W. et al. 2D perovskite stabilized phase-pure formamidinium perovskite solar cells. Nat. Commun. 9, 3021 (2018).

54. 54.

Keshavarz, M. et al. Tracking structural phase transitions in lead-halide perovskites by means of thermal expansion. Adv. Mater. 31, e1900521 (2019).

55. 55.

Wilson, A. J. C. & Langford, J. I. Scherrer after sixty years: a survey and some new results in the determination of crystallite size. J. Appl. Crystallogr. 11, 102–113 (1978).

56. 56.

Zhang, Y., Kim, S.-G., Lee, D., Shin, H. & Park, N.-G. Bifacial stamping for high efficiency perovskite solar cells. Energy Environ. Sci. 12, 308–321 (2019).

57. 57.

Galkowski, K. et al. Determination of the exciton binding energy and effective masses for methylammonium and formamidinium lead tri-halide perovskite semiconductors. Energy Environ. Sci. 9, 962–970 (2016).

58. 58.

Kronig, R. D. L. & Penney, W. G. Quantum mechanics of electrons in crystal lattices. Proc. R. Soc. Lond., Ser. A 130, 499–513 (1931).

59. 59.

Yuh, P.-F. & Wang, K. L. Formalism of the kronig-penney model for superlattices of variable basis. Phys. Rev. B Condens. Matter 38, 13307–13315 (1988).

60. 60.

Aly, A. E.-M. & Nasr, A. Theoretical study of one-intermediate band quantum dot solar cell. Int. J. Photoenergy 2014, 1–10 (2014).

61. 61.

Abdullah, H. & Kuo, D.-H. Photocatalytic performance of the SiO2 sphere/n-type TiO2/p-type CuBiS2 composite catalysts coated with different contents of Ag nanoparticles under ultraviolet and visible light irradiations. Appl. Phys. A 122, 739 (2016).

62. 62.

Silver, S., Yin, J., Li, H., Brédas, J.-L. & Kahn, A. Characterization of the valence and conduction band levels of n = 1 2D perovskites: a combined experimental and theoretical investigation. Adv. Energy Mater. 8, 1703468 (2018).

63. 63.

Sichert, J. A., Hemmerling, A., Cardenas-Daw, C., Urban, A. S. & Feldmann, J. Tuning the optical bandgap in layered hybrid perovskites through variation of alkyl chain length. APL Mater. 7, 041116 (2019).

64. 64.

Tanaka, K. & Kondo, T. Bandgap and exciton binding energies in lead-iodide-based natural quantum-well crystals. Sci. Technol. Adv. Mater. 4, 599–604 (2003).

65. 65.

Soe, C. M. M. et al. Structural and thermodynamic limits of layer thickness in 2D halide perovskites. Proc. Natl Acad. Sci. USA 116, 58–66 (2019).

66. 66.

Sichert, J. A. et al. Quantum size effect in organometal halide perovskite nanoplatelets. Nano Lett. 15, 6521–6527 (2015).

67. 67.

Blancon, J. C. et al. Scaling law for excitons in 2D perovskite quantum wells. Nat. Commun. 9, 2254 (2018).

68. 68.

Hong, X., Ishihara, T. & Nurmikko, A. V. Dielectric confinement effect on excitons in PbI4-based layered semiconductors. Phys. Rev. B Condens. Matter. 45, 6961–6964 (1992).

69. 69.

Katan, C., Mercier, N. & Even, J. Quantum and dielectric confinement effects in lower-dimensional hybrid perovskite semiconductors. Chem. Rev. 119, 3140–3192 (2019).

70. 70.

Reid, O. G. et al. Quantitative analysis of time-resolved microwave conductivity data. J. Phys. D. 50, 493002 (2017).

71. 71.

Savenije, T. J., Ferguson, A. J., Kopidakis, N. & Rumbles, G. Revealing the dynamics of charge carriers in polymer:fullerene blends using photoinduced time-resolved microwave conductivity. J. Phys. Chem. C. 117, 24085–24103 (2013).

72. 72.

Gelvez-Rueda, M. C. et al. Interconversion between free charges and bound excitons in 2D hybrid lead halide perovskites. J. Phys. Chem. C. 121, 26566–26574 (2017).

73. 73.

Venkatesan, N. R., Labram, J. G. & Chabinyc, M. L. Charge-carrier dynamics and crystalline texture of layered Ruddlesden–Popper hybrid lead iodide perovskite thin films. ACS Energy Lett. 3, 380–386 (2018).

74. 74.

Labram, J. G. et al. Charge transport in a two-dimensional hybrid metal halide thiocyanate compound. J. Mater. Chem. C. 5, 5930–5938 (2017).

75. 75.

Venkatesan, N. R. et al. Enhanced yield-mobility products in hybrid halide Ruddlesden-Popper compounds with aromatic ammonium spacers. Dalton Trans. 48, 14019–14026 (2019).

76. 76.

Greenspan, L. Humidity fixed points of binary saturated aqueous solutions. J. Res. Nat. Bur. Stand. A: Phys. Chem. 81A, 89–96 (1977).

77. 77.

Toby, B. H. & Von Dreele, R. B. GSAS-II: the genesis of a modern open-source all purpose crystallography software package. J. Appl. Crystallogr. 46, 544–549 (2013).

78. 78.

Walsh, A., elds22, Brivio, F. & Frost, J. M. WMD-Group/Hybrid Perovskites: Collection 1 (Version v1.0), https://doi.org/10.5281/zenodo.2641358 (2020).

## Acknowledgements

This study was authored by the National Renewable Energy Laboratory, operated by Alliance for Sustainable Energy, LLC, for the U.S. Department of Energy (DOE) under contract No. DE-AC36-08GO28308. Funding was provided by the Building Technologies Office within the U.S. Department of Energy Office of Energy Efficiency and Renewable Energy. Funding for microwave measurements provided by Department of Energy, Office of Basic Energy Sciences, Division of Chemical Sciences, Biosciences, and Geosciences. Use of the Stanford Synchrotron Radiation Lightsource, SLAC National Accelerator Laboratory, was supported by the U.S. Department of Energy, Office of Basic Energy Sciences under Contract No. DE-AC02-76SF00515. The views expressed in the article do not necessarily represent the views of the DOE or the U.S. Government. The U.S. Government retains and the publisher, by accepting the article for publication, acknowledges that the U.S. Government retains a nonexclusive, paid-up, irrevocable, worldwide license to publish or reproduce the published form of this study, or allow others to do so, for U.S. Government purposes. The authors thank Vincent M. Wheeler for helpful discussions. T.G.A. and G.R. thank Obadiah G. Reid for helpful discussions on fp-TRMC experiment design and data analysis. The authors thank their respective funding sources for their support.

## Author information

Authors

### Contributions

B.A.R. and L.M.W. conceived the idea, designed the study, and contributed to all data interpretation. B.A.R. also contributed to all experimental work. L.E.M. and L.T.S. performed in-situ WAXS measurements and analysis. T.G.A. performed fp-TRMC measurements, and T.G.A. and G.R. interpreted the data. D.T.M. performed all ball-milling experiments. K.J.P. and C.A.W. performed and analyzed SEM measurements. B.A.R. and L.M.W. wrote the paper. L.M.W. developed the K-P-like model. All authors discussed the results and revised the paper.

### Corresponding author

Correspondence to Lance M. Wheeler.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Peer review information Nature Communications thanks Yonghua Chen and other, anonymous, reviewers for their contributions to the peer review of this work. Peer review reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Rosales, B.A., Mundt, L.E., Allen, T.G. et al. Reversible multicolor chromism in layered formamidinium metal halide perovskites. Nat Commun 11, 5234 (2020). https://doi.org/10.1038/s41467-020-19009-z

• Accepted:

• Published: