How to get color from color palette in js?