Hex to RGB
Takes a hex code and shows the RGB, HSL and OKLCH equivalents, along with how it performs against white and black text.
How to use the hex to rgb
A hex colour is three bytes written in base 16, one per channel, so #e07a5f is red 224, green 122, blue 95. Converting by hand means reading each pair as a hexadecimal number. Two variants are worth recognising: the three-digit shorthand where each digit is doubled, so #e75 means #ee7755, and the eight-digit form where the final pair is alpha. The shorthand only works when both digits of each pair happen to match, which is why most real colours cannot be written short.
Questions
Read each pair of digits as a hexadecimal number. e0 is 224, 7a is 122, 5f is 95.
Each digit is doubled; #e75 is #ee7755. It only works when both digits of each pair match.
The last two digits are alpha, from 00 fully transparent to ff fully opaque.
No. #E07A5F and #e07a5f are identical.
Hex is sRGB, which is a screen space. Converting to CMYK for print shifts saturated colours noticeably.