RGB to HEX

Convert RGB values to HEX color

How to use

  1. Enter red, green, and blue values (0–255).
  2. The matching HEX colour code appears instantly.
  3. Copy the HEX value for your CSS or design tool.

Why use this tool

Frequently asked questions

What's the range for RGB values?

Each of red, green, and blue runs from 0 to 255, which maps to a two-digit hex pair in the final code.

Why use HEX over RGB?

They're equivalent; HEX is a compact string that's common in CSS and design files, while RGB is more readable as separate numbers.

Is it private?

Yes. The conversion runs in your browser.

Back to all tools