JavaScript

These posts are all related to JavaScript.

Share on Twitter Share on Facebook

April 26, 2021

How to Convert multiple RGB values to HSL with this REST API

In this how-to, I show you how to convert multiple color values from one format into another by using the Converting Colors REST Api, which I provide on RapidAPI.

Read

April 25, 2021

How to Convert HEX to RGB with Javascript

In this how-to, we will learn how to convert a HEX color string like "1502BE" to the RGB Version "21, 2, 190".

Read

April 25, 2021

How to Get Random Colors

For a random RGB color, we would need three numbers between 0 - 255, and for a color, in the HSL format, we need one number between 0 - 360 and two numbers between 0 - 100. If we want a random HEX color, we would need a number between 0 - 16777215, which we then convert from decimal to hexadecimal.

Read