Abstract. By recent results of Baker-Etnyre-Van Horn-Morris, a rational open book decomposition defines a compatible contact structure. We show that the Heegaard Floer contact invariant of such a contact structure can be computed in terms of the knot Floer homology of its (rationally null-homologous) binding. We then use this description of contact invariants, together with a formula for the knot Floer homology of the core of a surgery solid torus, to show that certain manifolds obtained by surgeries on bindings of open books carry tight contact structures.