← All guides

How to convert HEX, RGB, HSL and OKLCH

Type a color in one format and copy it in all the others.

2 steps · about 1 min

Open the color converter
  1. Type a color

    Enter a HEX, RGB or HSL value, or use the sliders. Invalid values are ignored rather than guessed.

    The color converter with an input box, sliders and a list of HEX, RGB, HSL and OKLCH values
    The color converter with an input box, sliders and a list of HEX, RGB, HSL and OKLCH values
  2. Copy the format you need

    Click any row to copy that value. OKLCH is shown too, for modern CSS that supports it.

Tips

Open the color converter