use luma to calculate border color