Color Converter

Free color converter — convert HEX, RGB, HSL and CMYK instantly, with tints, shades and a contrast check.

HEX#FF7A1F
RGBrgb(255, 122, 31)
HSLhsl(24, 100%, 56%)
CMYKcmyk(0%, 52%, 88%, 0%)
CSS var--brand: #FF7A1F;

Tints and shades · click to use

Text contrast (WCAG)

Aa White text

2.61:1 · Fails

Aa Black text

8.06:1 · AAA

What is the Color Converter?

Colors on the web can be written as HEX (#0D9488), RGB (rgb(13, 148, 136)) or HSL (hsl(174, 84%, 32%)). Cubestack converts between them instantly and shows a live swatch so you can check the color.

How to use it

  1. 1

    Enter a color

    Type a HEX code, RGB values or use the picker.

  2. 2

    Apply

    Convert from HEX or from RGB.

  3. 3

    Copy

    Copy the HEX, RGB or HSL value you need.

Features

  • HEX ↔ RGB ↔ HSL

    Convert in any direction.

  • Color picker

    Pick a color visually instead of typing.

  • Live preview

    A swatch shows the exact color.

  • CSS-ready copy

    Copy values formatted for CSS.

Popular uses

  • Design handoff

    Turn design HEX codes into RGB or HSL for code.

  • Theming

    Use HSL to create lighter and darker shades.

  • Brand colors

    Keep brand colors consistent across tools.

Frequently asked questions

What is HSL good for?

HSL (hue, saturation, lightness) makes it easy to create tints and shades by changing lightness only.

Does it support 3-digit HEX?

Use the full 6-digit form (e.g. #ffffff) for reliable conversion.

What about transparency?

Alpha isn't converted here; add it in CSS with rgb(r g b / 50%) or an 8-digit HEX.

Related tools