# Color Converter

URL: https://phishdestroy.io/developer-tools/color-converter
Category: Misc
Where it runs: Runs locally (nothing you enter is uploaded)

Type a color as #hex, rgb() or hsl(), or choose one with the picker, and get the same color in the other two notations plus its red, green and blue values.

## Example input

A medium blue in rgb()

```
rgb(59, 130, 246)
```

HEX #3b82f6, HSL hsl(217, 91%, 60%) and R 59, G 130, B 246; the swatch turns blue.

## FAQ

### Which color formats can I enter?

Hex with a leading # (3 or 6 digits), rgb() or rgba() and hsl() or hsla() with plain numbers; alpha is ignored. Color names such as red and hex without # are rejected, and percentage RGB values such as rgb(100%, 50%, 0%) are misread.

### Are the conversions exact?

HSL is rounded to whole degrees and percent, so converting that HSL back can move each channel by a few units. Only sRGB notations are covered; there is no CMYK, LAB or OKLCH.

### Is anything uploaded?

No. Parsing and conversion run in your browser and the page makes no network request.

## Related tools

- [Color Palette Generator](https://phishdestroy.io/developer-tools/color-palette-generator)
- [Color Contrast Checker](https://phishdestroy.io/developer-tools/color-contrast-checker)
- [CSS Gradient Builder](https://phishdestroy.io/developer-tools/css-gradient-builder)
- [CSS Box-Shadow Builder](https://phishdestroy.io/developer-tools/box-shadow-builder)
- [SVG Placeholder Generator](https://phishdestroy.io/developer-tools/svg-placeholder-generator)

All tools: https://phishdestroy.io/developer-tools
