Skip to content
Jellykit

RGB to HEX

Convert RGB values (0 to 255) into a HEX colour code for CSS and design tools, with HSL and CMYK shown too. Fast, free rgb to hex converter that runs offline.

Runs in your browser. Nothing is uploaded.

About RGB to HEX

Type the red, green and blue values from 0 to 255 and get the six-digit HEX code that CSS, Figma, Canva and most design apps accept. The result updates as you type.

Each channel becomes two hexadecimal digits: 255 is ff, 128 is 80 and 0 is 00. So rgb(255, 128, 0) is #FF8000, a bright orange.

How to use RGB to HEX

  1. Enter your values in the fields.
  2. The answer updates instantly as you type.
  3. Press Copy result to save the breakdown.

Frequently asked questions

Is hex better than RGB in CSS?

They're identical to the browser. Hex is shorter to type, rgb() is easier to read and edit.

What if my values are percentages?

Multiply each percentage by 2.55 first. 50% becomes about 128.

Is RGB to HEX free and private?

Yes. RGB to HEX is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all design tools →