DEV Community

Discussion on: Hex, rgba, or hsla?

Collapse
 
emma profile image
Emma Goto 🍙

Hex 100% of the time - that's how I've always done it! Never heard of HSL, I'll check it out.

Collapse
 
chiangs profile image
Stephen Chiang

Same...hex and rgb...but now that it has wide-spread browser support I suppose it's also great way to double-check accessibility by checking the luminance contrast since that is what enable the color-blind to distinguish dark against light. ref: MDN