Developer Tools

Color Converter

Enter a color in any format (HEX, RGB, or HSL) and see all other representations updated instantly. Includes a color swatch, copy buttons for each format, and the nearest CSS named color.

Updates all formats instantly Browser-only One-click copy for HEX, RGB, HSL
#4F46E5

Edit any field below; all formats update automatically

R
G
B
S%
L%
CSS HEX
CSS RGB
CSS HSL
Input Text Output Text Browser-only No upload by default

Features

  • Live conversion between HEX, RGB, and HSL
  • Color swatch preview
  • Nearest CSS named color displayed
  • Copy HEX, RGB, or HSL with one click
  • Accepts HEX shorthand (#ABC → #AABBCC)
  • Browser-only

How to use it

  1. Enter a color value in any input field (HEX, R/G/B, H/S/L).
  2. All other fields update instantly.
  3. See the color preview swatch.
  4. Copy any format with the Copy button.

Use cases

  • Converting brand colors between formats for CSS and design tools
  • Finding the HEX code for a known RGB value
  • Checking nearest CSS named color for documentation
  • Converting design system colors between tools

Limitations

  • Alpha (transparency) channel not supported in this version.
  • HEX input must be 6 digits. Short form (#abc) is not accepted.
Questions & answers

Frequently asked

What HEX formats are accepted?

#RRGGBB and #RGB shorthand are both accepted. Hash prefix is optional.

What does HSL stand for?

Hue (0–360°), Saturation (0–100%), and Lightness (0–100%). HSL is often easier to reason about than RGB because you can adjust brightness and saturation independently.

Does the converter support alpha/opacity?

Not in the current version. HEX, RGB, and HSL conversions assume fully opaque colours. For alpha, add an 'a' suffix manually: rgba(r, g, b, a) or hsla(h, s%, l%, a).