Tool Base

Developer Tools

RGB to HEX

Enter rgb(21, 94, 239) or 21, 94, 239 and get a HEX color.

Loading developer tool…

How to use RGB to HEX

  1. Step 1

    Start

    Open the tool and add your input.

  2. Step 2

    Adjust

    Review the options and run the action.

  3. Step 3

    Get the result

    Copy or download the result.

RGB to HEX features

  • rgb() or comma input
  • 0–255 validation
  • Copy HEX

Supported Formats / Details

Input formats

  • Text

Output formats

  • Text

Supported formats

  • Text

Frequently Asked Questions

What if a channel is 300?

You will see an error. Channels must be 0–255.

Is alpha kept?

Alpha in rgba() is ignored for HEX output in this version.

Explore related Tool Base utilities that pair well with RGB to HEX.

Browse all tools

Need another utility?

Browse related tools or explore the full Tool Base directory.