A fast and simple JavaScript library for color conversion between hex, RGB, HSL, HSV, and grayscale formats.
Colr is a JavaScript library for fast and simple color conversion between different formats like hex, RGB, HSL, and HSV. It solves the problem of needing a lightweight, high-performance tool to manipulate and translate color values in web applications. The library provides an intuitive API for importing, exporting, and modifying colors with minimal overhead.
Frontend developers and designers working on projects that require programmatic color manipulation, such as data visualization tools, design systems, or dynamic theme generators.
Developers choose Colr for its exceptional speed in color conversions, simple and chainable API, and lightweight footprint compared to alternatives like tinycolor or chroma.
Fast and simple color conversion.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks in the README show Colr significantly outperforms popular libraries like tinycolor and chroma in conversion speed, making it ideal for performance-sensitive applications.
All modifier methods return the instance, enabling concise, readable code through method chaining, as demonstrated with lighten/darken operations.
Supports multiple color formats including hex, RGB, HSL, HSV, and grayscale, with both rounded and raw floating-point export options for precision.
Focuses on core conversion and basic manipulation without unnecessary complexity, providing a stable and straightforward library based on its minimalist philosophy.
Only includes basic lighten and darken methods; lacks advanced operations like saturation adjustment, blending, or color scheme generation, which are common in other libraries.
The README is minimal, primarily listing API methods without tutorials or in-depth guides for complex use cases, which could hinder adoption and troubleshooting.
Does not mention support for alpha transparency (e.g., RGBA or HSLA), limiting its use in modern web applications that require opacity handling for colors.