Color tools for designers and developers that run entirely in your browser. Convert between HEX, RGB, and HSL color formats instantly with a live preview swatch, or check the WCAG contrast ratio between two colors to ensure your designs meet accessibility standards.
All calculations happen in JavaScript locally. No color values are sent to our servers and nothing is stored beyond your current browser session.
Read the complete color tools guide
Picking a color is a visual decision. You need to see the swatch next to your design. You need contrast to update the moment you change one of the inputs. A tool that requires a round trip to a server, even a fast one, breaks the feedback loop that designers actually rely on.
Color math is also tiny by computer standards. Converting HEX to RGB is two integer divides and three modulo operations. Converting RGB to HSL is a few floating-point comparisons. Computing a WCAG contrast ratio is a handful of multiplications. Sending the operation to a server takes longer than just doing it in JavaScript.
In-browser tools update live. Drag the hue slider and the swatch follows. Type a new HEX value and the contrast verdict updates in the same frame. The experience matches what designers expect from a desktop tool.
The color converter is pure JavaScript. HEX strings are parsed as bytes, RGB triples are mapped to HSL using the standard rgb-to-hsl formula, and the result is displayed in all three formats simultaneously. A swatch element gets itsbackground-color set directly from the current value so the preview is always live.
The contrast checker uses the WCAG 2.1 relative luminance formula: convert each color to linear-light RGB, apply the human-perception weights (0.2126 R, 0.7152 G, 0.0722 B), and compute the ratio between the lighter and darker luminance. The result is checked against the AA and AAA thresholds for normal and large text. Live verdict, no waiting.
| Approach | Live preview | Cost | Best for |
|---|---|---|---|
| In-browser (this site) | Yes | Free | Quick conversions, contrast checks during a design review |
| Browser DevTools color picker | Yes | Free | Editing CSS variables live on a page |
| Design applications | Yes | Subscription / free tier | Full design workflow with shared libraries |
DevTools is the right answer if the color you want to change is already in a page in your browser. A dedicated design application is the right choice when you are inside a design file. The in-browser tools here cover the in-between case: when you need a conversion or a quick contrast verdict without opening a heavier application.