◇ Useful tools

HEX, RGB and HSL Color Converter

Enter a #HEX, rgb(…), or hsl(…) color. View the matching HEX, RGB, and HSL codes, a swatch, and contrast with white and black text.

For example #0f8, rgb(0, 255, 136), or hsl(152, 100%, 50%); no alpha.

Preparing the tool…
♢

Your entered content is processed in this browser and is not sent to FileBangla servers.

How to use it

  1. Enter a value such as #0f8, rgb(0, 255, 136), or hsl(152, 100%, 50%).
  2. Convert it and review all three code formats.
  3. Check the swatch and copy the code you need.

What to know

Only opaque sRGB colors are supported; alpha, rgba, and hsla are not accepted. RGB channels must be 0–255; HSL hue 0–360 and saturation/lightness 0–100%. HSL is shown as whole numbers, so converting it back can introduce small rounding differences.

Frequently asked questions

Can I enter a transparent color?

No. This converter handles opaque HEX, RGB and HSL colors only.

Why can a converted HSL value change slightly when converted again?

Displayed HSL values are rounded to whole numbers, which can cause a small color difference.