1.0.0 • Published 4 years ago

@ialixandroae/hsl-to-hex v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

hsl-to-hex

Convert HSL colors to RGB colors in hex format.

Install

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

API

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

Example

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

License

ISC