RGB (255, 165, 0) to Integer — Orange
RGB (255, 165, 0) — orange — converts to the integer 16753920.
How to use this tool
- Enter red, green, and blue values (0–255 each).
- The tool computes the 24-bit packed integer and its hex string.
- Use the decimal integer in APIs that accept packed 0xRRGGBB values.
Orange (255, 165, 0) converts to the decimal color integer 16753920, equivalent to 0xFFA500 in hex.
Frequently asked questions
- How is an RGB color packed into an integer?
- Red occupies bits 16–23, green bits 8–15, and blue bits 0–7. The formula is: (R << 16) | (G << 8) | B.
- What range can the integer be?
- 0 (black) to 16,777,215 (white, 0xFFFFFF) for 24-bit RGB.