Nice rainbow colors associated with lengths