◐

Color Converter (HEX, RGB, HSL)

Convert colours between HEX, RGB and HSL with a live swatch. Free, private and instant.

How to use the Color Converter (HEX, RGB, HSL)

  1. Type a colour as HEX, RGB or HSL, or use the colour picker.
  2. All formats and the contrast ratio against white and black appear as you type.

Example

Worked example (run through this tool)

  • #0b6e8a: RGB rgb(11, 110, 138), HSL hsl(193, 85%, 29%), contrast 5.81:1 against white and 3.61:1 against black
  • rgb(255, 0, 0): HEX #ff0000, HSL hsl(0, 100%, 50%), contrast 4.00:1 against white and 5.25:1 against black

Limitations

  • Contrast is the WCAG ratio: normal text needs at least 4.5:1 against its background, and the 4.00:1 for red on white fails that.
  • Only sRGB colours are handled, with no alpha or modern formats such as oklch.
  • HSL values are rounded to whole numbers, so converting back may be off by one.

About this tool

Enter a colour as HEX (#0b6e8a), RGB (11, 110, 138) or HSL (193, 85%, 29%) and see every format at once, plus a preview.

Color Converter (HEX, RGB, HSL) is part of ToolStack Hub's Developer Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.

Frequently asked questions

Is the Color Converter (HEX, RGB, HSL) free?

Yes. Color Converter (HEX, RGB, HSL) is completely free with no sign-up, limits or watermarks.

Is my data private when I use the Color Converter (HEX, RGB, HSL)?

Yes. It runs in your browser, so your input is not uploaded to our servers.

Does it work on mobile?

Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.

Need this automated for your business?

Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.

Talk to Vantalume