HEX · RGB · HSL Color Converter

Convert and fine-tune colors with HEX, RGB, HSL and an interactive color wheel.

6 hexadecimal digits, with an optional #.
HEX
#7E4BF7
RGB
126, 75, 247
HSL
258°, 91%, 63%

HEX, RGB and HSL explained

HEX represents a color with six hexadecimal digits. RGB describes red, green and blue channels from 0 to 255. HSL describes hue, saturation and lightness and is useful for visual color adjustments.

HEX to RGB conversion

Each pair of hexadecimal digits represents one RGB channel. For example, #3498DB maps to red 52, green 152 and blue 219.

RGB to HEX conversion

Each RGB channel is converted to a two-digit hexadecimal value and combined into a six-digit HEX color code.

RGB to HSL and HSL to RGB

The converter keeps HEX, RGB, HSL, the native color picker and the color wheel synchronized. You can start with any representation and edit it directly.

Color converter FAQ

Can I edit RGB directly?

Yes. Change red, green or blue and HEX, HSL and the preview update immediately.

Can I enter a HEX code?

Yes. The HEX field accepts exactly six hexadecimal digits, with an optional #, and prevents extra characters.

Can I change HSL directly?

Yes. Use the sliders or the numeric HSL fields. All other values update instantly.

Related tools

Image File Size Calculator · Aspect Ratio Calculator · Resolution Calculator