Pular para o conteúdo principal

Online Color Converter

Convert colors between HEX, RGB, HSL and CMYK online. Accepts #RRGGBB, rgb(), hsl() and transparency (alpha). Free and accurate.

Colors can be represented by several mathematical models, and each one describes the same color in a different way. HEX expresses the color as a 6-digit hexadecimal code (#RRGGBB), where each pair represents a red, green, or blue channel between 00 and FF (0 to 255). RGB does the same with three decimal numbers from 0 to 255 — it is the native model of screens, which emit red, green, and blue light. HSL, on the other hand, describes color in a way that is more intuitive for humans: H (hue, in degrees from 0 to 360 on the color wheel), S (saturation, as a percentage), and L (lightness, as a percentage). This is why HSL is the preferred model in design and CSS for adjusting tones and creating variations of the same color. CMYK is the subtractive model used in printing: Cyan, Magenta, Yellow, and Key (black), expressed as ink percentages — unlike screens, which use additive light (RGB). This converter translates between HEX, RGB, HSL, and CMYK, normalizing input formats (it accepts #RGB shorthand, #RRGGBB, #RRGGBBAA, rgb(), rgba(), hsl(), hsla(), and cmyk()). It also handles transparency (alpha channel) where applicable: alpha is preserved between HEX, RGB, and HSL (as #RRGGBBAA, rgba(), and hsla()), and ignored in CMYK, which does not carry a transparency channel. It is essential for designers, web developers, print professionals, and anyone who needs to translate a color between digital and physical media.

Frequently Asked Questions

How do I convert HEX to RGB?

Each pair of hexadecimal digits becomes a number from 0 to 255. E.g., #FF8800 = rgb(255, 136, 0).

How do I convert RGB to HEX?

Convert each channel (0–255) to a 2-digit hexadecimal. E.g., rgb(255, 136, 0) = #FF8800.

What is HSL?

HSL is Hue (0–360°), Saturation (%), and Lightness (%). It is more intuitive for adjusting tones than RGB.

Is CMYK for screen or print?

CMYK is the subtractive model used in printing (ink). Screens use RGB (additive light). Conversion between them is approximate.

Does the converter support transparency (alpha)?

Yes. Alpha is preserved between HEX (#RRGGBBAA), RGB (rgba), and HSL (hsla). In CMYK, alpha is ignored because the model does not carry transparency.

Is this converter free?

Yes, completely free, with no registration and no usage limit.