RGB to HEX Converter

Set red, green and blue with sliders and read the matching HEX code live, with HSL, HSV and CMYK alongside. Copy the value you need.

Read the guide: How to convert RGB to HEX

#7c3aed

Converted values

HEX
HSL
HSV
CMYK

How it works

  1. 1

    Set R, G and B

    Drag the sliders or type each channel from 0 to 255.

  2. 2

    Read the hex

    The hex code updates live, with the nearest color name and other formats.

  3. 3

    Copy

    Click the hex to copy it, ready to paste into your CSS or design tool.

Instant & 100% private — nothing is uploaded

Every color is generated and converted right on your own device. Nothing is sent to a server, so there are no waits, no limits, and no copies kept anywhere.

Frequently asked questions

How do I convert RGB to a hex code?
Set each channel with the sliders or number fields. The hex code updates as you go, so rgb(124, 58, 237) becomes #7c3aed.
What is the hex for an RGB color?
Each channel from 0 to 255 becomes two hex digits. The three pairs join into a six-digit code prefixed with #, in red, green, blue order.
Can I type exact channel values?
Yes. Each slider has a number box next to it, so you can type a precise value from 0 to 255 instead of dragging.
Does it show other formats?
Yes. The same color is shown as HSL, HSV and CMYK as well, each with its own copy button.