Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@closrks/hsl-to-hex

closrks3ISC1.0.2

convert HSL colors to RGB colors in hex format.

readme

hsl-to-hex

convert HSL colors to RGB colors in hex format.

Install

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

API

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

Example

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

License

ISC