Design systems
Compare and move between hex, RGB, and HSL color values.
Color tool
Convert colors between web formats and inspect the preview instantly in the browser.
Use cases
Compare and move between hex, RGB, and HSL color values.
Inspect color values before you update UI tokens or brand palettes.
See the color swatch change as soon as the value is converted.
Basics
Color conversion helps you move between representations of the same visual color. Hex is common in CSS and design tokens. RGB and RGBA are often easier to reason about when you need exact channel values. HSL is useful when you want to adjust hue, saturation, or lightness in a more human-friendly way.
Use this tool when you are matching brand colors, debugging a design system, or checking the exact values used in a stylesheet. If the color appears inside structured theme data, inspect it with the JSON Formatter. If the input is being validated as text, the Regex Tester and Regex Cheat Sheet with Examples can help with hex-color patterns.
Examples
Designers often start with a hex value such as #0f766e and then convert it to RGB or HSL to tune a palette. Frontend developers may do the reverse when they receive an HSL token and need the exact CSS output. Named colors can also be useful during quick experiments, but explicit values are usually better for production work.
When debugging a hex value, remember that three-digit and six-digit forms are equivalent shorthand and full forms. If your color looks wrong, check the source value, the alpha channel, and the surrounding CSS rule before assuming the converter is wrong. The browser preview is a quick sanity check, not a substitute for the full stylesheet.
Common mistakes
A common mistake is mixing up hex shorthand with a different color entirely. Another is forgetting that alpha changes transparency, which can make the same color appear lighter or blend with a background. A third issue is using values in code without checking whether the format is supported by the target browser or build pipeline.
For team work, keep color tokens consistent and document the source of truth. If a value comes from a design system, leave that name in the notes so the next developer knows whether the color is intended to be reused or just inspected once.