RGB To Hex
Convert red, green and blue values into a HEX colour code with a live preview.
RGB To Hex
CSS accepts colours as either RGB values or a hexadecimal code. Enter your red, green and blue amounts to get the matching HEX value and see the colour.
How to use RGB To Hex
- Enter the Red, Green and Blue values, each from 0 to 255.
- Check the Color Preview.
- Copy the HEX colour code.
When it comes in handy
- Turning design-tool values into CSS hex codes.
- Matching brand colours across tools that use different formats.
- Checking a colour before using it in a stylesheet.
Frequently asked questions
What range can each value have?
Each channel goes from 0 (none) to 255 (full).
What does a HEX code like #FF8800 mean?
It is three pairs of hexadecimal digits: red FF, green 88 and blue 00.
Related guides
-
Unix Timestamps Explained: Epoch Time for Humans
What a Unix timestamp is, why it counts from 1970, seconds vs milliseconds, time zones, the year 2038 problem, and how to convert timestamps quickly.
-
JSON vs XML vs CSV: Choosing the Right Data Format for Your Project
JSON, XML and CSV each solve a different problem. Here is how to pick the right one, plus tools to convert and validate between them.
-
How to Fix Invalid JSON: The 8 Most Common Errors
Trailing commas, single quotes, unquoted keys and the other mistakes that break JSON, with before-and-after examples and a quick way to find the problem.