Quickabi tools color converter page

Ready now

HEX <-> RGB <-> HSL Converter

Preparing controls…

Tool controls

Examples: #215A46, rgb(33, 90, 70), or hsl(158, 46%, 24%). Alpha values are supported.

Color valuesYour result will appear here.

Processed on this device; input is not sent anywhere

About this tool

What HEX <-> RGB <-> HSL Converter does

Convert a color between HEX, RGB, and HSL values and preview the resulting color in the browser.

Convert supported HEX, RGB and HSL color notations and inspect their numeric equivalents. Conversion describes the color values; it does not check the accessibility of a color combination.

Convert pure red

Input or settings

#ff0000

Expected result

HEX: #FF0000
RGB: rgb(255, 0, 0)
HSL: hsl(0, 100%, 50%)

How to use it

  1. Enter a HEX, RGB or HSL color using the shown syntax.
  2. Choose Convert color and compare the swatch and numeric channels.
  3. Copy the notation required by your stylesheet or design system.

Common uses

  • Translate a HEX design token into RGB channels.
  • Understand a color’s hue, saturation and lightness values.

Important limitations

  • Channel ranges and supported syntax are validated; this is not a full CSS color parser.
  • Rounding can change the last digits in a round trip. Contrast requires comparing foreground and background separately.

Frequently asked questions

Is HSL lightness an accessibility score?

No. HSL lightness is a color coordinate, not perceived luminance or a WCAG contrast ratio.

Why do converted numbers have decimals?

Equivalent color models do not always map to whole-number channels. The displayed values are rounded.