Customizable and Touch-Friendly jQuery Color Picker Plugin - spectrum

File Size: 286 KB
Views Total: 8352
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Customizable and Touch-Friendly jQuery Color Picker Plugin - spectrum

spectrum is a powerful and high customizable Color Picker Plugin built with jQuery, no Flash and images required. It is easy to skin and customize the plugin with CSS, and there are a wide range of modes and options to explore. It is also touch-friendly that can work well on iOS and Android.

You might also like:

Basic Usage:

1. Include jQuery library and spectrum.js on your page

<script src=""></script>
<script src="spectrum.js"></script>

2. Include needed CSS file

<link href="spectrum.css" rel="stylesheet" type="text/css">

3. Markup

<input type='color' class='basic' value='#f594d0' />

4. Options example

    color: tinycolor,
    flat: bool,
    showInput: bool,
    showInitial: bool,
    showAlpha: bool,
    disabled: bool,
    localStorageKey: string,
    showPalette: bool,
    showPaletteOnly: bool,
    showSelectionPalette: bool,
    clickoutFiresChange: bool,
    cancelText: string,
    chooseText: string,
    className: string,
    preferredFormat: string,
    maxSelectionSize: int,
    palette: [[string]],
    selectionPalette: [string]

Change Log:

v1.8 (2016-03-28)

v1.3.4 (2014-04-08)

  • update

v1.3.1 (2014-02-14)

  • bugs fixed.

v1.1.2 (2013-11-12)

  • Fixed jslint error, fixed failing tests, fixed missing updateBordersCall

v1.1.0 (2013-04-21)

  • Update to the latest version

This awesome jQuery plugin is developed by bgrins. For more Advanced Usages, please check the demo page or visit the official website.