This website requires JavaScript to deliver the best possible experience.

The ultimate
JavaScript color
utility library.

Github

Install

# npm
npm i color-fns

# yarn
yarn add color-fns

Or

<script src="https://unpkg.com/color-fns"></script>

## Usage

// ES2015 (ES6)
import { toRgb } from 'color-fns';

console.log(toRgb('#fff'));


// CommonJS
const { toRgb } = require('color-fns');
console.log(toRgb('#fff'));

// UMD (Script Tag)
console.log(ColorFns.toRgb('#fff'));

Color-fns library provides a wide range of functions that allow several processing and conversion operations to be done on colors for a more flexible input/output formats of colors.

Parse, convert andmanipulate

Get the color format you need and easily manipulate color input and output data using the several functions color-fns packs.

Color-fns has
every thing
you need.

Get started