For a javascript library for color manipulation, the strongest matches are bgrins/tinycolor (TinyColor is a comprehensive JavaScript library that provides robust), gka/chroma.js (This library provides a comprehensive suite for color space) and qix-/color (This library provides robust color space conversion, manipulation, and). jariz/vibrant.js and davidmerfield/randomcolor round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best javascript color libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
TinyColor is a JavaScript color manipulation library used for parsing, converting, and modifying colors across various formats and color spaces. It functions as a color space conversion tool and a web accessibility contrast checker to ensure compliance with readability standards. The library provides a color palette generator for creating monochromatic, analogous, and complementary color schemes from a starting color. It also translates colors between hex, RGB, HSL, HSV, and named formats. Additional capabilities include color parsing and normalization, programmatic manipulation of brightnes
TinyColor is a comprehensive JavaScript library that provides robust color parsing, conversion, manipulation, and palette generation, while also including built-in accessibility contrast checking.
chroma.js is a JavaScript library for color manipulation, space conversion, and the generation of data visualization color scales. It provides a system for transforming colors between formats including RGB, HSL, Lab, LCH, OKLab, and CMYK, alongside tools for parsing and modifying colors across these spaces. The library specializes in data-driven color mapping, using algorithms such as Cubehelix, Bezier interpolation, and ColorBrewer palettes to translate numeric data into visual gradients. It includes a perceptual color difference calculator that utilizes CIE 2000 Delta E and Euclidean metric
This library provides a comprehensive suite for color space conversion, manipulation, and palette generation, making it a flagship tool for developers needing advanced color processing and accessibility auditing.
This is a JavaScript color manipulation library used for converting color spaces, formatting CSS strings, and computing luminosity ratios. It provides tools to transform color values between different mathematical models, including RGB, HSL, and CMYK. The library includes a web accessibility contrast calculator to compute luminosity and contrast ratios, ensuring text readability meets accessibility standards. It also features a CSS color formatter that exports values as hex strings, numeric arrays, or CSS-compatible strings. The toolkit covers broader capabilities for frontend color manageme
This library provides robust color space conversion, manipulation, and accessibility contrast checking, making it a direct fit for your requirements despite lacking explicit built-in palette generation features.
vibrant.js is a JavaScript color extraction library used to identify dominant color palettes from images based on the Android Palette algorithm. It functions as an image palette generator and a color processing tool that converts extracted data between RGB, HSL, and Hexadecimal formats. The library analyzes image pixels to categorize colors into specific profiles, including vibrant, muted, dark, and light. It also includes an accessible text color calculator that determines high-contrast hex colors for text overlays based on a selected background color. The toolset covers automated palette g
This library provides robust color extraction, palette generation, and format conversion capabilities, making it a specialized but effective tool for color manipulation tasks.
randomColor is a programmatic utility for generating harmonious, aesthetically pleasing color strings for use in web stylesheets and digital user interfaces. It functions as a random color generator that produces values in hexadecimal, RGB, and HSL formats. The library uses a logic-based system that calculates hues and luminosity in HSL space to ensure visual harmony. It allows for the application of specific constraints to brightness, transparency, and hue offsets to limit the generated color spectrum. The tool provides capabilities for programmatic color generation across multiple output f
This library provides programmatic color generation and format conversion, serving as a useful utility for creating color palettes even though it lacks built-in accessibility checking features.
Color-thief is a color quantization library and image color palette extractor designed to identify the most prominent colors in visual media. It functions as a semantic color classifier and color space converter, providing tools to extract dominant colors and generate representative palettes from images, videos, and canvas elements. The project utilizes a WebAssembly color processor and background workers to perform high-performance pixel analysis. It implements a WCAG contrast analyzer to calculate color contrast ratios and determine accessible foreground text colors based on accessibility s
This library provides robust tools for palette generation from images and includes accessibility contrast checking, making it a specialized but effective choice for color-related tasks in JavaScript.
This library provides a comprehensive suite of tools for color conversion and manipulation, making it a direct fit for your requirements even though it focuses primarily on programmatic color handling rather than visual palette generation.
JavaScript Library for creating random pleasing colors and color schemes
This library provides tools for generating random colors and creating color schemes, fitting the core requirements for color manipulation and palette generation in JavaScript.