@michijs/color-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Color converter

A conversion utility for color spaces.

npm license npm npm CodeQL Tests

Based on CSS color module 4 draft and Easy RGB documentation

Color spaces conversion

Conversion can be made from the following spaces:

  • hex ↔ rgba or rgb ↔ xyz ↔ lab ↔ lch
  • rgba or rgb ↔ lch (a shorcut for the previous one)
  • hex ↔ rgba or rgb ↔ hsl
  • hex ↔ rgba or rgb ↔ hsv

Color spaces support

We offer support for the following spaces:

License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    15
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    15
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i @michijs/color-converter

Weekly Downloads

17

Version

1.0.3

License

MIT

Unpacked Size

24.2 kB

Total Files

43

Last publish

Collaborators

  • lsegurado