RGB to HEX Color Converter | 2lus

Convert RGB colors to HEX and HSL with a downloadable preview.

What it does

Convert RGB to HEX. Parse colors and convert HEX, RGB and HSL.

What this tool accepts

text, a URL, or values entered in the tool

What it produces

SVG, JSON

How to use it

  1. Enter a supported color representation.
  2. Run, review the color representations and copy.

Example

Input:
rgb(255, 0, 0)

Options:
RGB → HEX

Output:
#ff0000

Tips and notes

Privacy and processing

Processing runs locally in your browser until you explicitly choose to share a result.

Open this tool or browse all 2lus tools.