Developer Tools

Color Converter

Convert colors between HEX, RGB, and HSL formats. Includes a live color preview and one-click copy for each format.

Share:
#3B82F6
rgb(59, 130, 246)
hsl(217, 91%, 60%)
RGB
HSL

Usage notes

  • HEX colors start with # followed by 6 hex digits (e.g., #3b82f6).
  • RGB values range from 0–255 for each channel (red, green, blue).
  • HSL stands for Hue (0–360°), Saturation (0–100%), Lightness (0–100%).

How to Use This Tool

  1. 1Enter a HEX color code or adjust RGB/HSL values.
  2. 2All formats update in sync. The color preview shows the result.
  3. 3Click Copy next to any format to copy the value.

Frequently Asked Questions

What is HEX color?
A 6-digit hexadecimal representation of a color (#RRGGBB). Each pair represents red, green, and blue intensity from 00 to FF.
When should I use HSL over RGB?
HSL is more intuitive for adjusting brightness and saturation. It's easier to create color variations (lighter/darker shades) by changing L.
Does this support alpha/transparency?
This tool converts opaque colors (no alpha channel). For RGBA/HSLA, append the alpha value manually.