Studio › Creator Tools › RGB → HEX
Converts an RGB value to a hex code.
This tool runs on JavaScript. To use it, turn on JavaScript in your browser and reload the page.
RGB → HEX converts red, green and blue values into a hexadecimal colour code. Each channel is entered as a number between 0 and 255; values outside the limit are pulled to the nearest valid one. The moment you type, the colour preview updates and the results appear: the HEX code, the RGB notation, the HSL value and a CSS variable you can paste into a style sheet. It is ideal for using an RGB value taken from an image editing program or a design document on the web.
The result list also tells you whether dark or light text should be put on this colour; the suggestion is worked out from the perceived brightness of the colour. You can also fill the values in by picking a colour from the colour picker. The tool works in both directions: when you type into the HEX field the RGB values update as well, which is why it shares a screen with “HEX → RGB”. The CMYK values used for printing are not in this tool; screen colours work with RGB. The calculation is done entirely in your browser, and the values you enter are not sent anywhere.
Values typed into the boxes are first rounded to whole numbers (127.6 → 128); an empty channel counts as 0, values above 255 are pulled down to 255 and negatives up to 0. In HEX, every channel is written with two digits: 5 becomes 05, so rgb(5, 10, 15) is #050A0F. There is no loss between HEX and RGB: both are two ways of writing the same 24-bit value and carry all 16,777,216 colours. HSL, however, is shown rounded to whole numbers, so converting back from HSL can shift the channels by a unit or two: rgb(26, 115, 232) is shown as hsl(214, 82%, 51%), and converting that back gives rgb(28, 116, 233). The colour picker only carries six-digit codes; if you need transparency, type an eight-digit code into the HEX field.
#FFFFFF, that is white. And rgb(0, 0, 0) is #000000, black.
Multiply each value by 255 and round it: 0.5 comes to about 128. The tool expects the 0–255 range.
No. This tool works with screen colours (RGB, HEX, HSL). Print colour conversion depends on the paper and the ink, so it has to be done in a print program.
No. This tool runs entirely in your browser; nothing you type or add is sent to the RUPO Studio server. It keeps working while the page is open even if your internet connection drops. No account needed. It is free to use: there is no hourly or daily limit, and we don't make you watch an ad before you see the result.
About us · Contact · Privacy & KVKK · Cookie Policy · Terms of use