function rgba(color, opacity) {
  return `rgba(${hexToRgb(color)}, ${opacity})`;
}
The rgba() function helps you to create a rgba color code, it uses the hexToRgb() function
  to convert the hex code into rgb for using it inside the rgba color format.