Output Color

Loading… Please Wait

About Hex to RGB Converter

Input an Hex value like #00ffff and Diversify India’s Hex to RGB converter will convert this value to an RGB color like rgb(0, 255, 255).

The Hex value can be a 3, 4, 6, or 8-digit hexadecimal color code. The output RGB color parameters are red, green, and blue.

Why Convert Hex to RGB?

Converting HEX to RGB is essential because RGB is a fundamental color model used in digital displays and image processing. While HEX is a compact and human-readable format often used in web design, RGB is more intuitive for understanding and manipulating color intensities. Converting HEX to RGB allows for compatibility with various digital applications and tools.

How to Convert Hex to RGB

To convert HEX to RGB, extract the red, green, and blue values from the HEX code.

  1. Split the HEX value into its Red (R), Green (G), and Blue (B) components.
    • Example: The HEX code #56C219 splits into: R = 56, G = C2, B = 19.
  2. Convert the HEX values to their decimal equivalents.
    • Red: 0x56 (HEX) = 86 (Decimal)
    • Green: 0xC2 (HEX) = 194 (Decimal)
    • Blue: 0x19 (HEX) = 25 (Decimal)
  3. Combine the RGB values:
    • Example: rgb(86, 194, 25)

List of Color Tools