RGB to HEX Converter

Convert between RGB and HEX color formats instantly. Includes a color picker, sliders, and one-click clipboard copy.

#6366F1

rgb(99, 102, 241)

Red99
Green102
Blue241

RGB and HEX color formats

RGB (Red, Green, Blue) represents colors by their components of red, green, and blue light, each from 0 to 255. It is the native model of digital screens.

HEX codes are a compact representation of the same RGB values in hexadecimal notation, widely used in HTML, CSS, and design tools.

Use the sliders or the visual color picker to select any color, then copy the result in either format for use in your code or design.

Frequently Asked Questions

How does the HEX format work?â–¼

#RRGGBB — each pair of hex digits represents one color channel (00–FF = 0–255). For example, #FF0000 is pure red.

Can I enter a HEX code directly?â–¼

Yes — type or paste a 6-digit HEX code (with or without the # prefix) into the HEX input field and the sliders will update automatically.