@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

/@michijs/color-converter/

    Package Sidebar

    Install

    npm i @michijs/color-converter

    Weekly Downloads

    22

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    24.2 kB

    Total Files

    43

    Last publish

    Collaborators

    • lsegurado