A chromophore is a conjugated system of alternating single and double bonds whose π electrons are delocalized over the whole chain, rather than confined to one bond. This simulator treats that delocalized electron cloud with the free-electron (particle-in-a-box) model: the π electrons behave like particles trapped in a one-dimensional box whose length grows with the number of conjugated double bonds. Longer box, more closely spaced energy levels, smaller HOMO–LUMO gap, and a longer absorbed wavelength — the well-known bathochromic (redshift) effect that governs real dye and pigment chemistry.
N double bonds hold 2N electrons in a box of length L ≈ 2N×1.40 Å (the average conjugated C–C/C=C bond length).n = N (HOMO) and the lowest unoccupied level is n = N+1 (LUMO).ΔE = h²(2N+1) / (8 me L²), and the absorbed wavelength is λ = hc/ΔE — exactly the trend that makes short polyenes like butadiene absorb in the UV while long, highly conjugated ones (like carotenoids or cyanine dyes) absorb deep in the visible or even the infrared.β-carotene, the pigment that makes carrots orange, owes its color to exactly this effect: eleven conjugated double bonds shrink the HOMO–LUMO gap enough for it to absorb blue-violet light and reflect the orange we see. Dyes are chemically bonded to the fiber they color (which is why they survive washing), while pigments are simply trapped as tiny insoluble particles inside a binding medium like paint or ink.
A 3D chromophore lab built on the free-electron (particle-in-a-box) model: stretch a conjugated polyene chain and watch the HOMO-LUMO gap shrink, the absorbed wavelength redshift, and the molecule's own visible color update live as the complement of what it absorbs.
Conjugated π electrons behave like particles trapped in a box whose length grows with the number of double bonds. A longer box packs its energy levels closer together, shrinking the HOMO–LUMO gap and shifting the absorbed wavelength toward red (a bathochromic shift) — the same physics that makes short polyenes colorless UV absorbers and long ones, like carotenoid pigments, vividly colored.
Drag the conjugated double bonds slider from 2 to 18 to rebuild the polyene backbone and instantly recompute the HOMO–LUMO gap, the absorbed wavelength, the live absorption-spectrum plot and the molecule's own displayed color. Switch between Dye and Pigment to see the same chromophore chemically bonded into a textile fiber versus dispersed as an insoluble solid particle in a resin block. Reset restores the default chain length and dye mode.
β-carotene's eleven conjugated double bonds shrink its HOMO–LUMO gap enough to absorb blue-violet light, which is exactly why carrots look orange — the color you see is never the color absorbed, it's always the complement.