Skip to content
Toolbento

Colour converter

Pick a colour and convert it between HEX, RGB, HSL, HSV and OKLCH.

Everything stays on this device

Colour converter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

HEX, rgb() or hsl()

Formats

  • HEX
    #1f7a5c
  • RGB
    rgb(31, 122, 92)
  • HSL
    hsl(160, 59%, 30%)
  • HSV
    hsv(160, 75%, 48%)
  • OKLCH
    oklch(51.92% 0.0964 166.23)

Swatch

Missing a feature or found a bug in Colour converter? Tell me on X (@_andrewtran) or by email.

How to use Colour converter

  1. Type a colour as HEX, rgb() or hsl(), or use the picker.
  2. Read it in every format on the left.
  3. Copy the format you need.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

What is OKLCH?

A newer CSS colour format where equal steps in lightness look equal to the eye. All current browsers support it.

Why can HSL values be off by one?

HSL is shown in whole numbers, so converting there and back can shift a colour by a single step. HEX and RGB are exact.

Esc

Loading tools