Convert Colors Between Formats

Convert colors between HEX, RGB, HSL, and OKLCH formats instantly. Includes a live color picker preview.

How to use

  1. Enter a color in any format — HEX, RGB, HSL, or OKLCH — or use the color picker.
  2. All other formats update instantly as you type.
  3. Click "Copy" next to any format to copy it to your clipboard.

Frequently asked questions

How do I convert HEX to RGB?

Enter a hex color code (e.g. #ff5733) and the RGB values appear instantly. Each pair of hex digits maps to red, green, and blue channels (0-255).

What is OKLCH and why should I use it?

OKLCH is a perceptually uniform color space with Lightness, Chroma, and Hue axes. It produces more predictable color modifications than HSL.

How do I convert RGB to HSL?

Enter RGB values (0-255 for each channel) and the HSL equivalent appears automatically. HSL represents color as Hue (0-360), Saturation (0-100%), and Lightness (0-100%).

Can I use the color picker to select a color?

Yes. Click the color swatch to open your browser's native color picker. Selecting a color updates all formats simultaneously.

Last updated

Powered by maratool