100% Client-Side · Zero Server Uploads

Color converter

Convert color between the different formats (hex, rgb, hsl and css name)

Initializing interactive Color converter workspace…

About Color converter

Convert any color seamlessly between HEX, RGB, HSL, HWB, LCH, CMYK, and CSS named colors on XMOOO Tools. Pick a shade visually or paste a code in any format to get every CSS-ready color value immediately.

How to Use Color converter

  1. Pick a color with the visual swatch or paste a value into HEX, RGB, HSL, CMYK, or CSS Name.
  2. All remaining color spaces recalculate simultaneously.
  3. Click the copy icon next to any format to paste straight into CSS, Tailwind, or Figma.

Common Web Color Conversion Examples

Color NameHEXRGBHSL
Emerald Green#18a058rgb(24, 160, 88)hsl(148, 74%, 36%)
Violet Accent#7c3aedrgb(124, 58, 237)hsl(262, 83%, 58%)
Dark Slate#0f172argb(15, 23, 42)hsl(222, 47%, 11%)
Pure White#ffffffrgb(255, 255, 255)hsl(0, 0%, 100%)

Frequently Asked Questions

When should I use HSL instead of HEX in CSS?

HSL (Hue, Saturation, Lightness) makes it much easier to build consistent hover states, tints, and dark-mode palettes by adjusting Lightness while keeping Hue constant.

Does HEX support transparency (alpha channel)?

Yes. 8-digit HEX (#RRGGBBAA) appends two alpha hex digits (for example, 80 ≈ 50% opacity).

Why does CMYK differ slightly from RGB on screen?

RGB is an additive light model for displays, whereas CMYK is a subtractive ink model for print with a narrower color gamut.