ImageMagick Color Names
+A number of ImageMagick options and methods take a color as an argument. The color can then be given as a color name (there is a limited but large set of these; see below) or it can be given as a set of numbers (in decimal or hexadecimal), each corresponding to a channel in an RGB or RGBA color model. HSL, HSLA, HSB, HSBA, CMYK, or CMYKA color models may also be specified. These topics are briefly described in the sections below.
Interactive Color Converter
+Interactive Color Converter
Use the -Color Converter +Color Converter to supply any valid ImageMagick color specification as described below to see a color swatch of that color and to convert to all the other color models.
Example Usage
+Example Usage
Each of the following commands produces the same lime border around the image. (Use "double quotes" for Windows.)
-$magick> convert -bordercolor lime -border 10 image.jpg image.png $magick> convert -bordercolor '#0f0' -border 10 image.jpg image.png $magick> convert -bordercolor '#00ff00' -border 10 image.jpg image.png $magick> convert -bordercolor 'rgb(0,255,0)' -border 10 image.jpg image.png $magick> convert -bordercolor 'rgb(0,100%,0)' -border 10 image.jpg image.png
+$ convert -bordercolor lime -border 10 image.jpg image.png $ convert -bordercolor '#0f0' -border 10 image.jpg image.png $ convert -bordercolor '#00ff00' -border 10 image.jpg image.png $ convert -bordercolor 'rgb(0,255,0)' -border 10 image.jpg image.png $ convert -bordercolor 'rgb(0,100%,0)' -border 10 image.jpg image.png
The list of recognized color names (for example, aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow, and others) is shown in a table further below.
Color Model Specification
+Color Model Specification
The RGB, CMYK, HSL and HSB color models are used in numerical color specifications. These examples all specify the same red RGB color:
@@ -205,6 +272,7 @@ color swatch of that color and to convert to all the other color models.#f00 #rgb #ff0000 #rrggbb + #ff0000ff #rrggbbaa #ffff00000000 #rrrrggggbbbb #ffff00000000ffff #rrrrggggbbbbaaaa rgb(255, 0, 0) an integer in the range 0—255 for each component @@ -243,7 +311,7 @@ color swatch of that color and to convert to all the other color models.The HSL color system is geometrically represented as a stacked double cone with one apex pointing downward and the other pointing upward. The widest ends of both cones are stacked together one on top of the other. Hue is measured around the perimeter. Saturation is measured from the axis outward. Lightness is measured from the bottom apex upward.
-See http://en.wikipedia.org/wiki/HSL_and_HSV for more details on HSL and HSB color systems.
+See http://en.wikipedia.org/wiki/HSL_and_HSV for more details on HSL and HSB color systems.
Hue is represented as an angle of the color around the circular perimeter of the cone(s) (i.e. the rainbow represented in a circle). Hue values are either integer or floats in the range 0—360 or integer or float percentage values in the range 0—100%. By definition red=0=360 (or 0%=100%), and the other colors are spread around the circle, so green=120 (or 33.3333%), blue=240 (or (66.6667%), etc. As an angle, it implicitly wraps around such that -120=240 and 480=120, for instance. (Students of trigonometry would say that "coterminal angles are equivalent" here; an angle θ can be standardized by computing the equivalent angle, θ mod 360.)
@@ -293,7 +361,7 @@ color swatch of that color and to convert to all the other color models.
List of Color Names
+List of Color Names
The table below provides a list of named colors recognized by ImageMagick:
@@ -5029,32 +5097,32 @@ color swatch of that color and to convert to all the other color models.