@davidmarkclements/hsl-to-hex

Convert HSL colors to RGB colors in hex format.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
70Apr 9, 2016Mar 3, 2016Minified + gzip package size for @davidmarkclements/hsl-to-hex in KB

Readme

hsl-to-hex

Convert HSL colors to RGB colors in hex format.

Install

npm install --save @davidmarkclements/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

License

ISC

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.