Small Tools
Frontend utility

HEX / RGB / HSL Converter

Convert HEX, RGB, and HSL notation into a consistent set of color values.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use HEX / RGB / HSL Converter

  1. Paste a HEX, rgb(), or hsl() color value.
  2. Select Convert to normalize it to HEX, RGB, and HSL.
  3. Use the output in CSS or design notes.

Example

Input / settings:

rgb(99, 102, 241)

Output:

HEX: #6366f1
RGB: rgb(99, 102, 241)
HSL: hsl(239 84% 67%)

When to use

Overview

Convert HEX, RGB, and HSL notation into a consistent set of color values.

Supported input

HEX, rgb(), or hsl() value

Output details

HEX, RGB, and HSL values

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers.

Frequently asked questions

Which input syntax is accepted?

Use 3 or 6 digit HEX, comma-separated rgb(), or hsl() with degree hue and percentage saturation/lightness.

Are CSS Color 4 syntax and alpha preserved?

No. Alpha is currently discarded and modern space-separated RGB syntax is not supported.

Does the input leave my browser?

No. Conversion is local.

Related tools