JavaScript Library
10.5k 2026-04-18

gka/chroma.js

A zero-dependency JavaScript library for comprehensive color conversions and scale generation.

Core Features

Perform various color conversions (e.g., Hex, RGB, Lab, Lch).
Generate sophisticated color scales with different interpolation modes.
Support custom domains, quantiles, and logarithmic scaling for color scales.
Manipulate colors (e.g., darken, lighten).
Zero-dependency and small footprint.

Quick Start

npm install chroma-js

Detailed Introduction

Chroma.js is a lightweight, zero-dependency JavaScript library dedicated to advanced color manipulation and scale generation. It provides developers with robust tools for converting colors across various models (Hex, RGB, Lab, Lch) and creating dynamic color scales essential for data visualization, UI design, and graphic applications. Its capabilities include custom domain handling, quantile, and logarithmic scaling, offering precise control over color interpolation and ensuring visually effective and accurate color representation.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.