The fluorescence of the styrene derivative DCVJ is strongly dependent on environmental rigidity.