1. Home
  2. Image Tools
  3. RGB ↔ HEX Converter

RGB to HEX & HEX to RGB

Type an RGB value or a HEX code — the other formats update instantly.

No upload — stays on your device Instant Free · no sign-up · no watermark

Quick answer: To convert RGB to HEX, write each value (0–255) as two hexadecimal digits: rgb(79, 70, 229) → 4F, 46, E5 → #4F46E5. Enter the numbers above to convert automatically.

How to use the RGB ↔ HEX Converter

  1. Enter R, G and B (0–255) — or a HEX code.
  2. Read or copy the converted value.

Frequently asked questions

What is a 3-digit HEX code?

A shorthand where each digit is doubled: #4AF = #44AAFF.