⚡ WebAssembly Powered

ColorAssembly

High-performance color processing library for JavaScript & TypeScript. Transform, analyze, and generate colors with blazing speed.

npm install @CymbolTech/colorassembly
🎨

15+ Color Spaces

RGB, HSL, HSV, CMYK, LAB, LCH, OKLAB, OKLCH, XYZ, LMS and more with full bidirectional conversion.

♿

Accessibility First

WCAG 2.1 contrast checking, APCA contrast, and color blindness simulation built-in.

⚡

Blazing Fast

WebAssembly-powered core delivers near-native performance for color operations.

🌈

Color Generation

Generate harmonies, shades, tints, and complete semantic palettes for your designs.

🔷

TypeScript Native

Complete type definitions with full IntelliSense support for an amazing DX.

📦

Zero Dependencies

Pure Go compiled to WASM. No runtime dependencies, just pure performance.

Simple. Powerful. Fast.

Start working with colors in seconds

app.ts
import { loadColorAssembly } from '@cymbol/colorassembly';

const api = await loadColorAssembly();

// Transform colors
const hsl = api.transforms.rgbToHsl({ r: 255, g: 128, b: 0 });
// { h: 30.12, s: 100, l: 50 }

// Check accessibility
const contrast = api.analyze.contrastRatio(
  { r: 0, g: 0, b: 0 },
  { r: 255, g: 255, b: 255 }
);
// 21 (perfect contrast)

// Generate harmonies
const triadic = api.generate.triadic({ r: 255, g: 0, b: 0 });
// [red, green, blue]

// Simulate color blindness
const protanopia = api.generate.simulateColorBlindness(
  { r: 255, g: 0, b: 0 },
  'protanopia'
);
135+
Functions
15+
Color Spaces
300+
Named Colors

Ready to build something amazing?

Start using ColorAssembly in your project today.