#!/bin/bash

function getColor(){
  rgb=$(printf "%02x%02x%02x" $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256)))
  echo $rgb
}

getColor