Bookmarklets Home | Links | Forms | Text and Data | Zap | Web Development | Validation | Misc

Color Bookmarklets

These bookmarklets let you play with colors on any web page that does not make heavy use of images. They require Mozilla 1.5a+ because they use CSS3 HSL (Hue-Saturation-Lightness) colors.

(To keep bookmarklets in order to use them on other web pages, drag them to your Bookmarks Toolbar. Or, install them all at once.)

Bookmarklet Description Works in
+hue [H = H + 1/24] Red becomes green, etc. Details Moz
-hue [H = H - 1/24] Green becomes red, etc. Details Moz
red [H = 0] Details Moz
green [H = 1/3] Details Moz
blue [H = 2/3] Details Moz
+light [L = L ^ (5/6)] Details Moz
-light [L = L ^ (6/5)] Details Moz
invert lightness [L = 1 - L] Dark green becomes light green, white becomes black. Details Moz
midbright [L = 0.5] Details Moz
+sat [S = S + 0.15] Details Moz
-sat [S = S - 0.15] Details Moz
no sat [S = 0] (grayscale) Details Moz
full sat [S = 1] Details Moz

Browsers: IE is Internet Explorer for Windows, Moz is Netscape 7 or Mozilla, NS4 is Netscape 4, and Op7 is Opera.


Details

+hue (Moz)

[H = H + 1/24] Red becomes green, etc.

-hue (Moz)

[H = H - 1/24] Green becomes red, etc.

red (Moz)

[H = 0]

green (Moz)

[H = 1/3]

blue (Moz)

[H = 2/3]

+light (Moz)

[L = L ^ (5/6)]

-light (Moz)

[L = L ^ (6/5)]

invert lightness (Moz)

[L = 1 - L] Dark green becomes light green, white becomes black.

midbright (Moz)

[L = 0.5]

+sat (Moz)

[S = S + 0.15]

-sat (Moz)

[S = S - 0.15]

no sat (Moz)

[S = 0] (grayscale)

full sat (Moz)

[S = 1]


© 2000-2007 Jesse Ruderman (jruderman@gmail.com). Feedback is welcome.
Last modified July 9, 2003.