Skip to content

adriantoine/hex-to-hsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HEX to HSL

Build Status

Convert a HEX color string to an HSL value

Install

npm install hex-to-hsl --save

Use

var hexToHsl = require('hex-to-hsl');

console.log(hexToHsl('#0593FF')); // Prints [206, 100, 51]
console.log(hexToHsl('#00C176')); // Prints [157, 100, 38]
console.log(hexToHsl('#fff')); // Prints [0, 0, 100]

About

Convert a hex color string to an hsl array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published