Work out hex to rgb instantly with clear inputs, formula shown and shareable results.
Each pair of hex digits is a base-16 number from 00 to FF, which converts to a decimal channel value from 0 to 255; three-digit shorthand doubles each digit. Hex is compact for authoring but RGB is what you need for interpolation and opacity, which is why design tokens are usually stored in the numeric form.
Channel conversion
channel = the two hex digits read as a base-16 number, giving 0 to 255
channel = the two hex digits read as a base-16 number, giving 0 to 255. Each pair of hex digits is a base-16 number from 00 to FF, which converts to a decimal channel value from 0 to 255; three-digit shorthand doubles each digit.
Hex is compact for authoring but RGB is what you need for interpolation and opacity, which is why design tokens are usually stored in the numeric form.
Enter hex colour, opacity. The defaults shown are a realistic worked example — swap in your own figures to get a result you can use.