Skip to content
FiftyCalc Free calculators for all 50 states

RGB to Hex Converter

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Convert RGB values (0 to 255) to a hex color code.

Result

Sample figures

Result—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

RGB to Hex Converter

Red, green, blue (0 to 255): type the text to use. Prefilled example: 30, 144, 255.

Affiliate link

This is an affiliate link: FiftyCalc may earn a commission if you buy through it. This does not change the result.

Corel sells CorelDRAW graphic design and technical illustration software. Visit Corel

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Red, green, blue (0 to 255): type the text to use.
  2. Read the result: Result.

How this calculator works

Each channel from 0 to 255 is written as two hex digits, red then green then blue (W3C CSS Color Module).

Worked example

Red, green, blue (0 to 255)30, 144, 255
Result#1E90FF

Frequently asked questions

What is rgb(0, 0, 0) in hex?

#000000, black.

Related calculators