Apps4Developers

Color Converter

View different formats of Color code which can be used in your app / site

  • Name, Hex, Rgb, Hwb, Hsl, Cmyk, Ncol

Credits to : https://www.w3schools.com/lib/w3color.js

Convert Color code using w3color.js

Get w3color.js from here.

import w3color from './w3color';

const colorObj = w3color(`#424242`);

Get Color Name

colorObj.toName();

Get Hex Code

colorObj.toHexString();

Get RGB Code

colorObj.toRgbString();

Get RGB Code with Alpha

colorObj.toRgbaString();

Get HSL Code

colorObj.toHslString();

Get HSL Code with Alpha

colorObj.toHslaString();

Get HSL Decimal Code

colorObj.toHslStringDecimal();

Get HWB Code

colorObj.toHwbString();

Get HWB Code with Alpha

colorObj.toHwbaString();

Get HWB Decimal Code

colorObj.toHwbStringDecimal();

Get CMYK Code

colorObj.toCmykString();

Get CMYK Decimal Code

colorObj.toCmykStringDecimal();

Get NCOL Code

colorObj.toNcolString();

Get NCOL Code with Alpha

colorObj.toNcolaString();

Get NCOL Decimal Code

colorObj.toNcolStringDecimal();
© 2022 Apps4Developers. All rights reserved.