Skip to contentSellstamp

Color converter

Convert colours between HEX, RGB, HSL and OKLCH in your browser, with a swatch and a picker.

HEX, rgb() or hsl().

HEX
#7c3aed
RGB
rgb(124 58 237)
HSL
hsl(262 83% 58%)
OKLCH
oklch(54.1% 0.247 293.0)

Stays on your device

Everything runs in your browser. Nothing you type is sent to Sellstamp or anyone else.

Building something to sell?

Sellstamp has a storefront, a checkout into your own payment account, automatic delivery and an API with webhooks. Open a free store

How to use it

  1. Type a colour as HEX, rgb() or hsl().
  2. Or pick one with the colour picker.
  3. Copy it in the format you need.

Nothing you paste leaves this page

The conversion runs in this browser tab. Nothing is sent to Sellstamp or anyone else, which matters for configuration files, customer exports and tokens.

OKLCH

OKLCH is the CSS colour format built on how people perceive lightness, so two colours with the same L look equally light, which HSL does not guarantee. The conversion follows the CSS Color 4 specification, checked against its published values for the sRGB primaries.

Questions

How do I convert HEX to RGB?

Type the HEX code; the RGB value appears beside HSL and OKLCH.

Does it support transparency?

Yes: 8-digit HEX and rgb()/hsl() with an alpha value.

What is OKLCH for?

Building palettes where shades are evenly spaced to the eye. Every current browser supports it in CSS.

Can I pick a colour from an image?

Yes, with the image colour picker.