Microdeck.tools 100% In-Browser

Color Format Converter (HEX, RGB, HSL, OKLCH)

New

Paste a colour in HEX, RGB, HSL or a CSS name and get every format, with alpha and the WCAG contrast ratio against white and black.

100% In-Browser No Server Storage Instant Results

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

Type or paste a colour such as #3b82f6, rgb(59 130 246), hsl(217 91% 60%) or tomato. The tool shows the same colour in every format and its contrast against white and black.

Step-by-Step Instructions

1

Paste a colour in any format.

2

Copy the format you need.

3

Check the contrast ratio.

Key Features & Performance

  • HEX, RGB, HSL, OKLCH
  • Alpha channel
  • WCAG contrast ratio
  • CSS colour names

Methodology, Formulas & Technical Standards

Colours are parsed to sRGB, then converted to HSL and OKLCH. Contrast uses the WCAG relative luminance formula.

Worked Examples & Edge Cases

#3b82f6

Input
HSL
Output
hsl(217, 91%, 60%)

Limitations, Scope & Accuracy Notes

  • • Colours outside the sRGB gamut, such as display-p3, are not supported.
  • • Rounded values can differ by 1 when converted back.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Color Format Converter (HEX, RGB, HSL, OKLCH) runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

What is OKLCH?

A perceptual colour space where equal lightness steps look equal, now supported in modern CSS.

Is anything uploaded?

No. Everything runs in your browser and your data stays on your device.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.