Calculator.CL Logo
Calculator.CL Free Online Calculator
Menu

Hex to RGB Converter

Translate colors between formats seamlessly.

#
R
G
B
CSS Output
#----
rgb(--, --, --)
Preview

Current Color

🔢 How Hex to RGB Works

The conversion process involves breaking the 6-digit Hex code into three pairs.

  1. Pair 1 (Red): First 2 characters.
  2. Pair 2 (Green): Middle 2 characters.
  3. Pair 3 (Blue): Last 2 characters.

Each pair is a hexadecimal number (base-16) that needs to be converted to decimal (base-10). For example, FF in hex equals 255 in decimal.

# Understanding Hexadecimal Codes

A Hex code starts with a hash # followed by 6 characters. The characters can be numbers (0-9) or letters (A-F).

  • 00 is the lowest value (no intensity).
  • FF is the highest value (full intensity).

Example: #FF0000 is pure Red (Full Red, No Green, No Blue).

🎨 Understanding RGB Values

RGB stands for Red, Green, Blue. It is an additive color model because it describes how light is mixed to create colors on a screen.

Each channel ranges from 0 to 255.
rgb(0, 0, 0) is Black.
rgb(255, 255, 255) is White.

Frequently Asked Questions

What is the difference between Hex and RGB?

They represent the same data differently. Hex is more concise (preferred in CSS), while RGB is easier to understand logically.

Does this converter support 3-digit Hex?

Yes, shorthand codes like #F00 are automatically expanded to #FF0000.

Share