Simultaneous optical and ultraviolet observations of variability in HD 50896