SmartToolsHouse
HomeDeveloperHEX, RGB & HSL Converter
Free Developer tool

Convert a web color into HEX, RGB, and HSL

Choose a color or enter its hexadecimal value to get equivalent CSS-ready RGB and HSL notation with a large visual swatch.

Three- and six-digit HEXCSS-ready outputLive color preview

HEX, RGB & HSL Converter

Convert a web color into matching HEX, RGB, and HSL values.

HEX#6F4CFF
RGBrgb(111, 76, 255)
HSLhsl(252, 100%, 65%)

Use the HEX, RGB & HSL Converter in three steps

01

Choose or enter a color

Use the picker or type a valid HEX value.

02

Review equivalent formats

See the matching RGB channels and HSL components.

03

Copy the notation

Use the format that best fits your stylesheet or design system.

RGB describes light channels

Red, green, and blue values each range from 0 to 255. CSS combines them to create the displayed color.

HSL can be easier to adjust

Hue describes the color angle, saturation its intensity, and lightness its position between black and white. HSL is useful for creating related shades.

HEX, RGB & HSL Converter FAQ

Can I enter a three-digit HEX color?

Yes. A value such as #3af expands to #33AAFF.

Does HEX capitalization matter?

No. Uppercase and lowercase hexadecimal digits represent the same color.

What range does RGB use?

Each red, green, and blue channel ranges from 0 through 255.

What is hue in HSL?

Hue is an angle around the color wheel, typically expressed from 0 through 359 degrees.

Why can converted HSL values be rounded?

HSL percentages are displayed as whole values for practical CSS use, so converting back may differ by a channel value in edge cases.

Does this converter include transparency?

No. It converts opaque HEX colors without an alpha channel.