DengWoLai DengWoLai
Dev · DengWoLai

Color Converter — HEX, RGB, HSL and OKLCH

Colour converter translates a colour between formats — HEX for CSS, RGB for canvas, HSL for adjusting hue and lightness, OKLCH for perceptually even palettes. Conversion runs locally.

Runs locally · files stay on device · works offline

Click any shade to apply

How it works in 4 steps

  1. 1

    Pick or drop

    Select or drag files into the card — loaded directly into local memory.

  2. 2

    Set options

    Adjust target KB, format, dimensions or filters with instant feedback.

  3. 3

    Process locally

    Canvas, WebAssembly, or Web Crypto completes the job on your device.

  4. 4

    Save result

    Download directly; close the tab to clear everything from memory.

When to use this

Scenario Recommended Why
A design token must become RGB for canvas Colour Converter Exact conversion with a preview
Lightening a colour without shifting hue Colour Converter HSL and OKLCH make that predictable
Building a palette that stays even Colour Converter OKLCH lightness is perceptually uniform, unlike HSL

Privacy & Offline Guarantee

Ready to use with zero installation or login. Once loaded once, core dependencies cache locally so the tool works offline.

FAQ

Why do designers use HSL instead of RGB?

HSL separates hue from lightness and saturation, so "darker" means changing one number instead of three. But HSL lightness is not perceptually even — yellow at L=50% looks much brighter than blue at L=50%.

What is OKLCH?

A perceptually uniform colour space. Equal lightness steps look equally different to the eye, which makes it good for generating accessible palettes.

Is anything uploaded?

No — pure local conversion.

Something failed, or you wish this tool also did something else? Tell me →

Related Tools

Dev
Image to Base64
Turn an image into a data URI, with size comparison.
Local only →
Dev
URL Encoder / Decoder
Percent-encode URLs — see both encoder variants.
Local only →
Dev
HTML Escape / Unescape
Escape HTML entities so text shows literally.
Local only →
Dev
JSON to YAML and Back
Convert between JSON and YAML — config never uploaded.
Local only →

Ready to process your files privately?

Back to tool ↑