RGBA to Hex Converter

Convert RGBA color values (0-255) to hexadecimal color code for web development and design.

%

RGB Combined Value

3,900,150

Opacity (0-1)1.00
Red Component (%)23.1 %

RGBA to Hex Color Conversion

RGBA uses decimal values 0-255 for each color channel. Hex uses two hexadecimal digits (00-FF) per channel.

Conversion

Each channel: divide by 16 to get the two hex digits.

  • R=59 -> 3B
  • G=130 -> 82
  • B=246 -> F6
  • Result: #3B82F6
  • The combined numeric value is calculated as R*65536 + G*256 + B.

    Note: To see the actual hex string, use your browser developer tools or a dedicated color picker. This calculator provides the numeric components.

    Example Calculation

    Convert rgba(59, 130, 246, 1.0) to hex.

    1. 01R=59 -> hex 3B
    2. 02G=130 -> hex 82
    3. 03B=246 -> hex F6
    4. 04Hex: #3B82F6
    5. 05Combined value = 59*65536 + 130*256 + 246 = 3,899,126

    Frequently Asked Questions

    Learn More

    Metric vs Imperial: A Complete Guide to the Two Measurement Systems

    Understand the differences between the metric and imperial measurement systems. Learn their history, how they compare, and when to use each system for length, weight, volume, and temperature.

    Related Calculators