Color Converter — HEX, RGB, HSL

Convert colors between HEX, RGB, and HSL formats. Use the color picker or type values directly.

About Color Formats

HEX — the most common format in CSS. A 6-character code representing red, green, and blue channels in hexadecimal (base-16). Example: #38bdf8 means R=56, G=189, B=248.

RGB — defines color by mixing red, green, and blue light. Each channel ranges from 0 to 255. Useful when you need rgba() for transparency.

HSL — defines color by Hue (color wheel angle 0-360°), Saturation (intensity 0-100%), and Lightness (brightness 0-100%). Most intuitive for creating color palettes and adjusting shades.

Frequently Asked Questions

What is HEX color?

HEX is a 6-digit hexadecimal representation of color used in web development. It starts with # followed by pairs of characters for red, green, and blue (e.g., #FF5733). Each pair ranges from 00 (0) to FF (255).

What is the difference between RGB and HSL?

RGB defines colors by mixing Red, Green, and Blue light (0-255 each). HSL defines colors by Hue (0-360°), Saturation (0-100%), and Lightness (0-100%). HSL is more intuitive for humans — you can easily make a color lighter or more saturated.

When should I use HEX vs RGB vs HSL?

Use HEX for CSS shorthand (#fff). Use RGB when you need opacity (rgba). Use HSL when you want to programmatically adjust brightness or saturation — it's easier to create color palettes with HSL.

Can I use the color picker?

Yes! Click the color swatch to open your browser's native color picker. Select any color and all formats (HEX, RGB, HSL) update automatically.

Related Tools

JSON Formatter — Format and validate JSON data.

Convert Case — Transform text between different cases.

View All Tools