@codedbypaul/hsl-to-hex

Converts HSL colors to RGB colors in hex format.

Usage no npm install needed!

<script type="module">
  import codedbypaulHslToHex from 'https://cdn.skypack.dev/@codedbypaul/hsl-to-hex';
</script>

README

hsl-to-hex

Converts HSL colors to RGB colors in hex format.

Install

npm install --save @codedbypaul/hsl-to-hex

API

require('hsl-to-hex') => Function
hsl(hue, saturation, luminosity)` =>
String

Example

var hsl = require("hsl-to-hex");
var hue = 133;
var saturation = 40;
var luminosity = 60;
var hex = hsl(hue, saturation, luminosity);
console.log(hex); // #70c282

Licence

ISC