Description
Color Thief is a JavaScript library for pulling colors out of images and video. It finds the dominant color of an image, builds a palette of several colors, and returns semantic swatches. Version 3 groups colors in the OKLCH color space, which the project describes as perceptually uniform, while the older raw RGB method is still available through an option. The library works in the browser and in Node.js, and it has a command-line tool. It can observe a live video source and update colors as the picture changes. Each color comes back as an object with hex and CSS values, and the API includes options for quality, region extraction and asynchronous calls. The project is under the MIT license. The page shows more than 13,000 GitHub stars, more than 7 million annual npm downloads, about 11.7 kB gzipped, and TypeScript support. It suits front-end developers who want to theme a page from a photo.…
Highlights
- Dominant color and multi-color palettes
- OKLCH perceptual color space
- Works in browsers and Node.js, plus a CLI
- Live video color extraction
- MIT license with TypeScript support
Ratings & Reviews
No ratings yet
Be the first to rate lokeshdhakar.com/projects/color-thief.
People also visit
CoolColor Space Video Palette
Extract a color palette from a video in the browser
lokeshdhakar.com/projects/color-thief FAQ
What is Color Thief?
A JavaScript library that extracts colors from images and video.
How do I install it?
Run npm install colorthief, then call getColorSync for one dominant color or getPaletteSync for a palette.
Does it work in Node.js?
Yes. The page lists browser, Node.js and command-line support.
What license is it under?
The MIT license, according to the page.
How popular is it?
The page shows more than 13,000 GitHub stars and more than 7 million annual npm downloads.
What are the best lokeshdhakar.com/projects/color-thief alternatives?
Popular alternatives to lokeshdhakar.com/projects/color-thief include Extract Colors, Pictones and ColorSense. See all lokeshdhakar.com/projects/color-thief alternatives





