Riley was born at Norwood, London, the daughter of a businessman. Her childhood was spent in Cornwall and Lincolnshire. She studied at Goldsmiths' College from 1949 to 1952, and at the Royal College of Art from 1952 to 1955. She began painting figure subjects in a semi-impressionist manner, then changed to pointilism around 1958, mainly producing landscapes. In 1960 she evolved a style in which she explored the dynamic potentialities of optical phenomena. 

Riley taught children for two years before joining the Loughborough School of Art, where she initiated a basic design course in 1959. She then taught at Hornsey School of Art, and from 1962 at Croydon School of Art. She worked for the J. Walter Thompson Group advertising agency from 1960, but gave up teaching and advertising agency work in 1963-4.

Group shows include Young Contemporaries, London, 1955; Diversion, South London Art Gallery 1958; an Arts Council Touring Exhibition, 1962; Tooth's Critics Choice Exhibition, selected by Edward Lucie-Smith, 1963; John Moores' Exhibition, Liverpool, 1963; The New Generation, Whitechapel Gallery 1964; Movement, Hanover Gallery, London, 1964; Painting and Sculpture of a Decade 1954-1964, Tate Gallery, 1964; and Op Art, touring Ireland in 1967. Her numerous European and American exhibitions include The Sixties Collection Revisited, Aldrich Museum of Contemporary Art, Ridgefield, Connecticut, 1978.

Riley was awarded the AICA Critics Prize in 1963 and also that year a John Moores', Liverpool Open Section prize. In 1964 she was awarded a Peter Stuyvesant Foundation Travel bursary to the USA. In 1968 she won an International Painting Prize at the Venice Biennale.

Her first solo exhibition was held at Gallery One in 1962 with a second solo show the following year. Other solo shows were held at Nottingham University, 1963; Richard Feigen Gallery, New York and Feigen Palmer Gallery, Los Angeles, 1965; Museum of Modern Art, New York, with US tour, 1966; Venice Biennale, British Pavilion (with Phillip King), 1968; Hayward Gallery, London, 1971; National Gallery, Prague, 1971; Hayward Gallery and Kunsthalle Nuremberg, 1992; Kettle's Yard, Cambridge, 1995; and Waddington Galleries, London, 1996.