stoolme
Home/ Design/ Color converter

Color converter

Pick a color or type a value in HEX, RGB, or HSL — the tool shows you all three representations side by side, plus a live swatch.

Tints & shades

Click any band to copy its HEX.

What this tool does

Type any color value or pick from the system color picker, and see the same color expressed in three formats: HEX, RGB, and HSL. The tool also generates a strip of tints and shades so you can pick related colors that share a hue.

The three formats, briefly

HEX

Six hexadecimal digits prefixed with #. The first two digits encode red (00–FF), the next two green, the last two blue. Compact, ubiquitous in CSS and design tools, but not intuitive to read or modify by hand. The three-digit shorthand (#f00) is an abbreviation for the six-digit form with each digit doubled (#ff0000).

RGB

Three decimal numbers (0–255), one per channel. The same color as #ff8800 is rgb(255, 136, 0). More readable than HEX. CSS supports adding an alpha channel: rgb(255 136 0 / 0.5) for 50% opacity.

HSL

Hue (0–360°), Saturation (0–100%), Lightness (0–100%). HSL is the friendliest format for thinking about color: to make a color darker, lower the lightness; to make it less vibrant, lower the saturation; to shift it to a different color family, change the hue. HSL is the format designers usually want when picking color systems.

When to use each

  • HEX — for sharing color values in design tools and code, where compactness matters.
  • RGB — when you need to add an alpha channel, or when reasoning about additive light (screens, projectors).
  • HSL — when designing a color system, generating tints and shades, or making sense of why two colors look similar.

Tints, shades, and tones

The strip below the swatches shows ten levels of the picked color's hue at progressively lower lightness. A "tint" is a color mixed with white (higher lightness); a "shade" is mixed with black (lower lightness); a "tone" is mixed with gray (lower saturation). HSL lets you generate any of the three by changing a single number.

Accessibility

Don't choose color values purely by appearance — check contrast. The WCAG 2.1 standard requires a contrast ratio of at least 4.5:1 between normal text and its background. The deep forest accent on this site (#14532d) on the off-white background (#faf9f5) gives a contrast ratio of about 9:1, well above the requirement. Free contrast checkers exist online; we may add one to the catalog.

Privacy

All conversions are pure math, in your browser.

Frequently asked questions

Why does my color look slightly different in Photoshop vs the browser?
Browsers assume the sRGB color space by default; Photoshop may use a different working space (Adobe RGB, ProPhoto). For web work, always design and export in sRGB.
Can I enter alpha (transparency)?
This tool focuses on the opaque HEX/RGB/HSL forms. To add alpha in CSS, use rgb(r g b / a) or rgba(r, g, b, a) with a 0–1 alpha value.
Are the HSL values rounded?
Yes, to whole numbers. That introduces tiny inaccuracies when converting back to HEX — typically zero or one in the last channel. For pixel-perfect work, keep the HEX value as the source of truth.
Is OKLCH supported?
Not yet. OKLCH is a perceptual color space supported by modern browsers but not in scope for this version of the tool.
Does the tool track which colors I pick?
No. There is no logging — the math runs locally and nothing is saved.