There are a few ways to tell if a rainbow lorikeet is male or female:
By coloration: Males have brighter colors than females. Males have a red head and blue body, while females have a more greenish-yellow head and duller blue body.
By size: Males are larger, growing up to 30 centimeters long, while females reach about 25 centimeters.
By behavior: Males are more aggressive, more likely to sing, display, and fight. Females are shyer and more retiring.
If unsure, consult a veterinarian or bird expert who can determine sex by physical characteristics.