AbraCalc

Integer 16711680 to RGB — Red

The color integer 16711680 converts to RGB (255, 0, 0) — pure red.

Embed this tool on your site

How to use this tool

  1. Enter a 24-bit integer (0–16777215).
  2. The tool extracts the red, green, and blue channels via bit-shifts.
  3. You also get the equivalent hex color code.

The integer 16711680 (0xFF0000) decodes to RGB (255, 0, 0), which is pure red.

Frequently asked questions

How do you extract RGB from an integer?
R = (n >> 16) & 0xFF, G = (n >> 8) & 0xFF, B = n & 0xFF.
What is 16777215?
It is 0xFFFFFF in hex, which is pure white (255, 255, 255).