# HEX RGB HSL converter

> Convert a CSS color into HEX, RGB and HSL.

[Open tool](https://www.toolcabana.com/th/color-converter) · [รูปภาพและการออกแบบ](https://www.toolcabana.com/th/category/images-and-design)

Tool ID: color-converter. Requested language: th. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

HEX RGB HSL converter takes any CSS color, such as a HEX code, rgb(), hsl() or a named color like tomato, and returns its HEX, RGB and HSL equivalents plus the alpha value. Semi-transparent colors produce rgba(), hsla() and an 8-digit HEX, and the swatch shows them over a checkerboard.

## Supported tasks (en)

Converts a CSS color to HEX, RGB and HSL. The swatch uses the alpha channel, and a checkerboard shows through transparent pixels.

## Steps (en)

1. Enter the requested values in the settings panel.
2. Set css color.
3. Run hex rgb hsl converter, review the output, then use the available copy or download controls.

## Settings

- CSS color (en; key: color; type: text)

## Limitations (en)

Images are limited to 32 megapixels and 16,000 pixels per side. Most operations accept one source; supported batch operations produce a ZIP archive.

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How do I convert HEX to RGB?

Type the HEX code, for example #ed854b, into the CSS color field. The result lists HEX, RGB and HSL lines, so for that color the RGB line reads rgb(237, 133, 75).

### Can I convert colors with transparency?

Yes. Enter a value like rgba(0, 0, 0, 0.5) or an 8-digit HEX. The output switches to rgba() and hsla() with alpha to three decimals, and the HEX gains a fourth byte for the alpha channel.

### Why is my color value rejected?

The input must be a color your browser supports with a fixed value. Keywords such as inherit, initial, unset, revert or currentColor and var() references are refused because they do not resolve to a single color.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Images are limited to 32 megapixels and 16,000 pixels per side. Most operations accept one source; supported batch operations produce a ZIP archive.

## Related tools

- [Color palette generator](https://www.toolcabana.com/th/color-palette)
- [Color picker from image](https://www.toolcabana.com/th/image-color-picker)
- [Contrast checker](https://www.toolcabana.com/th/contrast-checker)
- [Gradient generator](https://www.toolcabana.com/th/gradient-maker)
