Hex Color to RGB Converter
Show RGB, HSL, and luminance details for a HEX color.
Enter the details
Add the information requested below to get your result.
Your entries are used to produce the result in this browser.
Share or download
How to use this tool
What does the Hex Color to RGB Converter do?
Show RGB, HSL, and luminance details for a HEX color. Enter the details above to see the result. The notes below explain the calculation method, any published formula, a worked example and important limitations.
When to use this tool
Show RGB, HSL, and luminance details for a HEX color. Have Hex color ready before you start. Try the output in the application where you plan to use it before adding it to a live project.
How to use the Hex Color to RGB Converter
- Enter the requested information: Hex color.
- Check each value, date, text entry, or unit before continuing.
- Tap the main button to see your result.
- Review the result and use Copy result when you need to reuse it.
- Choose Clear to remove the entries and start again.
Formula and calculation method
The supplied text or data is parsed, formatted, encoded, validated or transformed according to the selected operation. You supply Hex color. Test important output in the application where it will be used.
This tool may use a processing rule, conversion factor, validation step or generation method rather than one standalone equation. The method above describes how its output is produced.
Hex Color to RGB Converter worked example
Example inputs: Hex color: #3366cc. Example output: HEX: #3366cc RGB: 51, 102, 204 HSL: 220, 60, 50 Relative luminance: 0.1457
Inputs required
- Hex color
Accuracy and limitations
Use the output as a development aid and validate important code, encoded data, or configuration in your actual application environment. Results are generated by the method built into this tool. Rounding, input format, unit selection, and assumptions can affect the output. For important decisions, verify the result independently with an appropriate trusted source.
Part of Other Developer Tools.
Sources and further reading
These external references support the standards, concepts or browser methods related to this tool. The exact assumptions used by this calculator are described above.
- MDN Web Docs — MDN Web DocsReference documentation for web platform APIs and browser behaviour used by developer utilities.
Frequently asked questions
What do I need to enter?
Start with Hex color. Follow the field labels and keep units and formats consistent.
How is the result worked out?
The supplied text or data is parsed, formatted, encoded, validated or transformed according to the selected operation. You supply Hex color. Test important output in the application where it will be used.
What should I double-check?
Test the output in the application or environment where you plan to use it.