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
Paste a colour in any format.
Copy the format you need.
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
HSL
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:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
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
Image Color Palette & Hex Extractor
Pull the main colours from an image as HEX codes
SVG Optimizer (SVGO), Color Swapper & Exporter
Compress SVG weight 60–80%, swap palette colors in 1 click & export React / Vue / Astro
Resistor Color Code Calculator
4, 5 and 6 band resistors: colors to value, value to colors, nearest E24