app/Statistics/Service/ColorService.php
private function rgbToHex(int $r, int $g, int $b): string
    {
        return sprintf('#%02x%02x%02x', $r, $g, $b);
    }
private function rgbToHex(int $r, int $g, int $b): string
    {
        return sprintf('#%02x%02x%02x', $r, $g, $b);
    }
private function rgbToHex ( int $ r , int $ g , int $ b ) : string { return sprintf ( '#%02x%02x%02x' , $ r , $ g , $ b ) ; }
Converts the color values to the HTML hex representation.

@param int $r The red color value
@param int $g The green color value
@param int $b The blue color value

@return string
Converts the color values to the HTML hex representation .