Free developer & data tool

HEX RGB HSL Color Converter

Convert a three- or six-digit HEX color into normalized HEX, RGB and rounded HSL.

This tool processes input locally in your browser without a tool API upload. This describes tool processing, not a site-wide logging guarantee. Avoid pasting live secrets.

HEX#167D8D
RGBrgb(22, 125, 141)
HSLhsl(188, 73%, 32%)

Supported behavior

  • Convert a three- or six-digit HEX color into normalized HEX, RGB and rounded HSL.
  • Input supports HEX only, not RGB/HSL text, alpha, named CSS colors or wide-gamut spaces. HSL components round to integers; reverse round trips can differ. The swatch is a preview, not a contrast/accessibility assessment.

How to use the HEX RGB HSL Color Converter

  1. Enter HEX with optional # or use the color picker; read RGB and HSL output.
  2. Review the result or error before copying. Shared output panels offer Copy; there is no file upload or download workflow.
  3. Tool input is processed locally without a tool API request. This does not establish site-wide analytics or logging policy.

Examples

Worked behavior

#f00 becomes #FF0000, rgb(255, 0, 0) and hsl(0, 100%, 50%).

Limits and common mistakes

Input supports HEX only, not RGB/HSL text, alpha, named CSS colors or wide-gamut spaces. HSL components round to integers; reverse round trips can differ. The swatch is a preview, not a contrast/accessibility assessment.

Frequently asked questions

Can I paste rgba() or eight-digit HEX?

No. Convert those values separately and supply opaque three- or six-digit HEX.

Sources & methodology

Related tools

More developer & data tools