Premier Gladys Berejiklian and her fellow cabinet members will have "blood on their hands" because of their refusal to allow pill testing if someone dies at a music festival this summer.

Or so says Tyson Koh, Keep Sydney Open organiser and candidate in the last state election, speaking at a rally to protest NSW drug laws on Saturday.

Protest at Sydney Town Hall over NSW drug laws. Credit:Dominic Lorrimer

A small but colourful crowd of about 150 people gathered at Town Hall Square for a rally and march to Surry Hills Police Station on Goulburn Street.

There were several DJs with sound systems on wheels playing electronic dance music and the protesters, some dressed for a night out, danced at each intersection. A few were carrying placards saying "pill testing saves lives" and "end police abuse - no strip searches".