You're viewing an older version of this page (#1129). View the current version.

View versions (1)

Interface

#include <codecogs/computing/graphics/rgb to hex.h>

using namespace Computing::Graphics;

Overview

Converts a single colour value between 0-255 to hexadecimal.

GPL Licence — free for non commercial use. See Licence details.

FUNCTION

rgbToHex

Converts integer values for Red, Green and Blue into Hexadecimal

Parameters

R
Red color code (0-255)
G
Green color code (0-255)
B
Blue color code (0-255)

Interactive Calculator

R
G
B
Result