HEX to RGB Converter

Convert HEX colors to RGB/RGBA and related color formats.

Color formats

  • HEX: #0F766E
  • RGB: rgb(15, 118, 110)
  • RGBA: rgba(15, 118, 110, 1)
  • HSL: hsl(175, 77%, 26%)
  • HSLA: hsl(175, 77%, 26%)

All conversion happens locally in your browser. The value you enter is not sent to a server, logged, stored, or transmitted.

How to use this tool

Enter the required values in the labeled fields. Results update in your browser and are announced for assistive technologies. Use realistic measurements and verify important outcomes before acting on them.

Formula or logic

Valid 3, 6 and 8 digit HEX values are parsed into RGB channels and optional alpha.

Example calculation

Example: #0F766E converts to RGB 15, 118, 110.

Frequently asked questions

Are invalid HEX values rejected?

Yes. The tool shows validation guidance for invalid input.

Does it support alpha?

8-digit HEX alpha is supported in the shared color converter.

Related tools

Converters

Color Converter

Convert HEX colors to RGB, RGBA, HSL and HSLA formats locally.

Design Tools

Color Picker

Pick a color and copy HEX, RGB and HSL values.