RGBtoHEX = color => {
    const hexMap = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E"];
    let hexValue = "#";
    let divisionNumber = color.r / 16;
    let remainder = color.r % 16;
    hexValue += String(hexMap[Math.floor(divisionNumber)]);
    hexValue += String(hexMap[remainder]);
    divisionNumber = color.g / 16;
    remainder = color.g % 16;
    hexValue += String(hexMap[Math.floor(divisionNumber)]);
    hexValue += String(hexMap[remainder]);
    divisionNumber = color.b / 16;
    remainder = color.b % 16;
    hexValue += String(hexMap[Math.floor(divisionNumber)]);
    hexValue += String(hexMap[remainder]);
    return hexValue;
  }
Returns the hex value of the color as string
@param {Object} color Receives an object with the properties for each of the main colors(r, g, b)