Difference between revisions of "Color"
m (Reorganized) |
m (Added X11 colors) |
||
Line 949: | Line 949: | ||
|white||bgcolor="FFFFFF" | | |white||bgcolor="FFFFFF" | | ||
|} | |} | ||
+ | |||
+ | |||
+ | == X11 colors == | ||
+ | |||
+ | [https://en.wikipedia.org/wiki/X11_color_names X11_color_names] defined in | ||
+ | {{src|colo-imp-x11.mkiv}}. These can be loaded using | ||
+ | |||
+ | <texcode>\usecolors[x11]</texcode> | ||
+ | |||
+ | |||
+ | {| style="text-align: right; padding-right: 20px;" | ||
+ | !| Name !! Color | ||
+ | !style="width: 100px;"| Name !! Color | ||
+ | !style="width: 100px;"| Name !! Color | ||
+ | !style="width: 100px;"| Name !! Color | ||
+ | |- | ||
+ | |snow||bgcolor="fffafa" | | ||
+ | |ghostwhite||bgcolor="f8f8ff" | | ||
+ | |whitesmoke||bgcolor="f5f5f5" | | ||
+ | |gainsboro||bgcolor="dcdcdc" | | ||
+ | |- | ||
+ | |floralwhite||bgcolor="fffaf0" | | ||
+ | |oldlace||bgcolor="fdf5e6" | | ||
+ | |linen||bgcolor="faf0e6" | | ||
+ | |antiquewhite||bgcolor="faebd7" | | ||
+ | |- | ||
+ | |papayawhip||bgcolor="ffefd5" | | ||
+ | |blanchedalmond||bgcolor="ffebcd" | | ||
+ | |bisque||bgcolor="ffe4c4" | | ||
+ | |peachpuff||bgcolor="ffdab9" | | ||
+ | |- | ||
+ | |navajowhite||bgcolor="ffdead" | | ||
+ | |moccasin||bgcolor="ffe4b5" | | ||
+ | |cornsilk||bgcolor="fff8dc" | | ||
+ | |ivory||bgcolor="fffff0" | | ||
+ | |- | ||
+ | |lemonchiffon||bgcolor="fffacd" | | ||
+ | |seashell||bgcolor="fff5ee" | | ||
+ | |honeydew||bgcolor="f0fff0" | | ||
+ | |mintcream||bgcolor="f5fffa" | | ||
+ | |- | ||
+ | |azure||bgcolor="f0ffff" | | ||
+ | |aliceblue||bgcolor="f0f8ff" | | ||
+ | |lavender||bgcolor="e6e6fa" | | ||
+ | |lavenderblush||bgcolor="fff0f5" | | ||
+ | |- | ||
+ | |mistyrose||bgcolor="ffe4e1" | | ||
+ | |white||bgcolor="ffffff" | | ||
+ | |black||bgcolor="000000" | & nbs[; | ||
+ | |darkslategray||bgcolor="2f4f4f" | | ||
+ | |- | ||
+ | |dimgray||bgcolor="686868" | | ||
+ | |slategray||bgcolor="708090" | | ||
+ | |lightslategray||bgcolor="778899" | | ||
+ | |gray||bgcolor="c0c0c0" | | ||
+ | |- | ||
+ | |lightgray|| bgcolor="d4d4d4" | | ||
+ | |midnightblue||bgcolor="191970" | | ||
+ | |navy||bgcolor="000080" | | ||
+ | |navyblue||bgcolor="000080" | | ||
+ | |- | ||
+ | |cornflowerblue||bgcolor="6495ed" | | ||
+ | |darkslateblue||bgcolor="483d8b" | | ||
+ | |slateblue||bgcolor="6a5acd" | | ||
+ | |mediumslateblue||bgcolor="7b68ee" | | ||
+ | |- | ||
+ | |lightslateblue||bgcolor="8470ff" | | ||
+ | |mediumblue||bgcolor="0000cd" | | ||
+ | |royalblue||bgcolor="4169e1" | | ||
+ | |blue||bgcolor="0000ff" | | ||
+ | |- | ||
+ | |dodgerblue||bgcolor="1e90ff" | | ||
+ | |deepskyblue||bgcolor="00bfff" | | ||
+ | |skyblue||bgcolor="87ceeb" | | ||
+ | |lightskyblue||bgcolor="87cefa" | | ||
+ | |- | ||
+ | |steelblue||bgcolor="4682b4" | | ||
+ | |lightsteelblue||bgcolor="b0c4de" | | ||
+ | |lightblue||bgcolor="add8e6" | | ||
+ | |powderblue||bgcolor="b0e0e6" | | ||
+ | |- | ||
+ | |paleturquoise||bgcolor="afeeee" | | ||
+ | |darkturquoise||bgcolor="00ced1" | | ||
+ | |mediumturquoise||bgcolor="48d1cc" | | ||
+ | |turquoise||bgcolor="40e0d0" | | ||
+ | |- | ||
+ | |cyan||bgcolor="00ffff" | | ||
+ | |lightcyan||bgcolor="e0ffff" | | ||
+ | |cadetblue||bgcolor="5f9ea0" | | ||
+ | |mediumaquamarine||bgcolor="66cdaa" | | ||
+ | |- | ||
+ | |aquamarine||bgcolor="7fffd4" | | ||
+ | |darkolivegreen||bgcolor="556b2f" | | ||
+ | |darkseagreen||bgcolor="8fbc8f" | | ||
+ | |seagreen||bgcolor="2e8b57" | | ||
+ | |- | ||
+ | |mediumseagreen||bgcolor="3cb371" | | ||
+ | |lightseagreen||bgcolor="20b2aa" | | ||
+ | |palegreen||bgcolor="98fb98" | | ||
+ | |lightgreen||bgcolor="90ee90" | & nbsp; | ||
+ | |- | ||
+ | |springgreen||bgcolor="00ff7f" | | ||
+ | |lawngreen||bgcolor="7cfc00" | | ||
+ | |green||bgcolor="00ff00" | | ||
+ | |chartreuse||bgcolor="7fff00" | | ||
+ | |- | ||
+ | |mediumspringgreen||bgcolor="00fa9a" | | ||
+ | |greenyellow||bgcolor="adff2f" | | ||
+ | |limegreen||bgcolor="32cd32" | | ||
+ | |yellowgreen||bgcolor="9acd32" | | ||
+ | |- | ||
+ | |forestgreen||bgcolor="228b22" | | ||
+ | |olivedrab||bgcolor="6b8e23" | | ||
+ | |darkkhaki||bgcolor="bdb76b" | | ||
+ | |khaki||bgcolor="f0e68c" | | ||
+ | |- | ||
+ | |palegoldenrod||bgcolor="eee8aa" | | ||
+ | |lightgoldenrodyellow||bgcolor="fafad2" | | ||
+ | |lightyellow||bgcolor="ffffe0" | | ||
+ | |yellow||bgcolor="ffff00" | | ||
+ | |- | ||
+ | |gold||bgcolor="ffd700" | | ||
+ | |lightgoldenrod||bgcolor="eedd82" | | ||
+ | |goldenrod||bgcolor="daa520" | | ||
+ | |darkgoldenrod||bgcolor="b8860b" | | ||
+ | |- | ||
+ | |rosybrown||bgcolor="bc8f8f" | | ||
+ | |indianred||bgcolor="cd5c5c" | | ||
+ | |saddlebrown||bgcolor="8b4513" | | ||
+ | |sienna||bgcolor="a0522d" | | ||
+ | |- | ||
+ | |peru||bgcolor="cd853f" | | ||
+ | |burlywood||bgcolor="deb887" | | ||
+ | |beige||bgcolor="f5f5dc" | | ||
+ | |wheat||bgcolor="f5deb3" | | ||
+ | |- | ||
+ | |sandybrown||bgcolor="f4a460" | | ||
+ | |tan||bgcolor="d2b48c" | | ||
+ | |chocolate||bgcolor="d2691e" | | ||
+ | |firebrick||bgcolor="b22222" | | ||
+ | |- | ||
+ | |brown||bgcolor="a52a2a" | | ||
+ | |darksalmon||bgcolor="e9967a" | | ||
+ | |salmon||bgcolor="fa8072" | | ||
+ | |lightsalmon||bgcolor="ffa07a" | | ||
+ | |- | ||
+ | |orange||bgcolor="ffa500" | | ||
+ | |darkorange||bgcolor="ff8c00" | | ||
+ | |coral||bgcolor="ff7f50" | | ||
+ | |lightcoral||bgcolor="f08080" | | ||
+ | |- | ||
+ | |tomato||bgcolor="ff6347" | | ||
+ | |orangered||bgcolor="ff4500" | | ||
+ | |red||bgcolor="ff0000" | | ||
+ | |hotpink||bgcolor="ff69b4" | | ||
+ | |- | ||
+ | |deeppink||bgcolor="ff1493" | | ||
+ | |pink||bgcolor="ffc0cb" | | ||
+ | |lightpink||bgcolor="ffb6c1" | | ||
+ | |palevioletred||bgcolor="db7093" | | ||
+ | |- | ||
+ | |maroon||bgcolor="b03060" | | ||
+ | |mediumvioletred||bgcolor="c71585" | | ||
+ | |violetred||bgcolor="d02090" | | ||
+ | |magenta||bgcolor="ff00ff" | | ||
+ | |- | ||
+ | |violet||bgcolor="ee82ee" | | ||
+ | |plum||bgcolor="dda0dd" | | ||
+ | |orchid||bgcolor="da70d6" | | ||
+ | |mediumorchid||bgcolor="ba55d3" | | ||
+ | |- | ||
+ | |darkorchid||bgcolor="9932cc" | | ||
+ | |darkviolet||bgcolor="9400d3" | | ||
+ | |blueviolet||bgcolor="8a2be2" | | ||
+ | |purple||bgcolor="a020f0" | | ||
+ | |- | ||
+ | |mediumpurple||bgcolor="9370db" | | ||
+ | |thistle||bgcolor="d8bfd8" | | ||
+ | |snow1||bgcolor="fffafa" | | ||
+ | |snow2||bgcolor="eee9e9" | | ||
+ | |- | ||
+ | |snow3||bgcolor="cdc9c9" | | ||
+ | |snow4||bgcolor="8b8989" | | ||
+ | |seashell1||bgcolor="fff5ee" | | ||
+ | |seashell2||bgcolor="eee5de" | | ||
+ | |- | ||
+ | |seashell3||bgcolor="cdc5bf" | | ||
+ | |seashell4||bgcolor="8b8682" | | ||
+ | |antiquewhite1||bgcolor="ffefdb" | | ||
+ | |antiquewhite2||bgcolor="eedfcc" | | ||
+ | |- | ||
+ | |antiquewhite3||bgcolor="cdc0b0" | | ||
+ | |antiquewhite4||bgcolor="8b8378" | | ||
+ | |bisque1||bgcolor="ffe4c4" | | ||
+ | |bisque2||bgcolor="eed5b7" | | ||
+ | |- | ||
+ | |bisque3||bgcolor="cdb79e" | | ||
+ | |bisque4||bgcolor="8b7d6b" | | ||
+ | |peachpuff1||bgcolor="ffdab9" | | ||
+ | |peachpuff2||bgcolor="eecbad" | | ||
+ | |- | ||
+ | |peachpuff3||bgcolor="cdaf95" | | ||
+ | |peachpuff4||bgcolor="8b7765" | | ||
+ | |navajowhite1||bgcolor="ffdead" | | ||
+ | |navajowhite2||bgcolor="eecfa1" | | ||
+ | |- | ||
+ | |navajowhite3||bgcolor="cdb38b" | | ||
+ | |navajowhite4||bgcolor="8b795e" | | ||
+ | |lemonchiffon1||bgcolor="fffacd" | | ||
+ | |lemonchiffon2||bgcolor="eee9bf" | | ||
+ | |- | ||
+ | |lemonchiffon3||bgcolor="cdc9a5" | | ||
+ | |lemonchiffon4||bgcolor="8b8970" | | ||
+ | |cornsilk1||bgcolor="fff8dc" | | ||
+ | |cornsilk2||bgcolor="eee8cd" | | ||
+ | |- | ||
+ | |cornsilk3||bgcolor="cdc8b1" | | ||
+ | |cornsilk4||bgcolor="8b8878" | | ||
+ | |ivory1||bgcolor="fffff0" | | ||
+ | |ivory2||bgcolor="eeeee0" | | ||
+ | |- | ||
+ | |ivory3||bgcolor="cdcdc1" | | ||
+ | |ivory4||bgcolor="8b8b83" | | ||
+ | |honeydew1||bgcolor="f0fff0" | | ||
+ | |honeydew2||bgcolor="e0eee0" | | ||
+ | |- | ||
+ | |honeydew3||bgcolor="c1cdc1" | | ||
+ | |honeydew4||bgcolor="838b83" | | ||
+ | |lavenderblush1||bgcolor="fff0f5" | | ||
+ | |lavenderblush2||bgcolor="eee0e5" | | ||
+ | |- | ||
+ | |lavenderblush3||bgcolor="cdc1c5" | | ||
+ | |lavenderblush4||bgcolor="8b8386" | | ||
+ | |mistyrose1||bgcolor="ffe4e1" | | ||
+ | |mistyrose2||bgcolor="eed5d2" | | ||
+ | |- | ||
+ | |mistyrose3||bgcolor="cdb7b5" | | ||
+ | |mistyrose4||bgcolor="8b7d7b" | | ||
+ | |azure1||bgcolor="f0ffff" | | ||
+ | |azure2||bgcolor="e0eeee" | | ||
+ | |- | ||
+ | |azure3||bgcolor="c1cdcd" | | ||
+ | |azure4||bgcolor="838b8b" | | ||
+ | |slateblue1||bgcolor="836fff" | | ||
+ | |slateblue2||bgcolor="7a67ee" | | ||
+ | |- | ||
+ | |slateblue3||bgcolor="6959cd" | | ||
+ | |slateblue4||bgcolor="473c8b" | | ||
+ | |royalblue1||bgcolor="4876ff" | | ||
+ | |royalblue2||bgcolor="436eee" | | ||
+ | |- | ||
+ | |royalblue3||bgcolor="3a5fcd" | | ||
+ | |royalblue4||bgcolor="27408b" | | ||
+ | |blue1||bgcolor="0000ff" | | ||
+ | |blue2||bgcolor="0000ee" | | ||
+ | |- | ||
+ | |blue3||bgcolor="0000cd" | | ||
+ | |blue4||bgcolor="00008b" | | ||
+ | |dodgerblue1||bgcolor="1e90ff" | | ||
+ | |dodgerblue2||bgcolor="1c86ee" | | ||
+ | |- | ||
+ | |dodgerblue3||bgcolor="1874cd" | | ||
+ | |dodgerblue4||bgcolor="104e8b" | | ||
+ | |steelblue1||bgcolor="63b8ff" | | ||
+ | |steelblue2||bgcolor="5cacee" | | ||
+ | |- | ||
+ | |steelblue3||bgcolor="4f94cd" | | ||
+ | |steelblue4||bgcolor="36648b" | | ||
+ | |deepskyblue1||bgcolor="00bfff" | | ||
+ | |deepskyblue2||bgcolor="00b2ee" | | ||
+ | |- | ||
+ | |deepskyblue3||bgcolor="009acd" | | ||
+ | |deepskyblue4||bgcolor="00688b" | | ||
+ | |skyblue1||bgcolor="87ceff" | | ||
+ | |skyblue2||bgcolor="7ec0ee" | | ||
+ | |- | ||
+ | |skyblue3||bgcolor="6ca6cd" | | ||
+ | |skyblue4||bgcolor="4a708b" | | ||
+ | |lightskyblue1||bgcolor="b0e2ff" | | ||
+ | |lightskyblue2||bgcolor="a4d3ee" | | ||
+ | |- | ||
+ | |lightskyblue3||bgcolor="8db6cd" | | ||
+ | |lightskyblue4||bgcolor="607b8b" | | ||
+ | |slategray1||bgcolor="c6e2ff" | | ||
+ | |slategray2||bgcolor="b9d3ee" | | ||
+ | |- | ||
+ | |slategray3||bgcolor="9fb6cd" | | ||
+ | |slategray4||bgcolor="6c7b8b" | | ||
+ | |lightsteelblue1||bgcolor="cae1ff" | | ||
+ | |lightsteelblue2||bgcolor="bcd2ee" | | ||
+ | |- | ||
+ | |lightsteelblue3||bgcolor="a2b5cd" | | ||
+ | |lightsteelblue4||bgcolor="6e7b8b" | | ||
+ | |lightblue1||bgcolor="bfefff" | | ||
+ | |lightblue2||bgcolor="b2dfee" | | ||
+ | |- | ||
+ | |lightblue3||bgcolor="9ac0cd" | | ||
+ | |lightblue4||bgcolor="68838b" | | ||
+ | |lightcyan1||bgcolor="e0ffff" | | ||
+ | |lightcyan2||bgcolor="d1eeee" | | ||
+ | |- | ||
+ | |lightcyan3||bgcolor="b4cdcd" | | ||
+ | |lightcyan4||bgcolor="7a8b8b" | | ||
+ | |paleturquoise1||bgcolor="bbffff" | | ||
+ | |paleturquoise2||bgcolor="aeeeee" | | ||
+ | |- | ||
+ | |paleturquoise3||bgcolor="96cdcd" | | ||
+ | |paleturquoise4||bgcolor="668b8b" | | ||
+ | |cadetblue1||bgcolor="98f5ff" | | ||
+ | |cadetblue2||bgcolor="8ee5ee" | | ||
+ | |- | ||
+ | |cadetblue3||bgcolor="7ac5cd" | | ||
+ | |cadetblue4||bgcolor="53868b" | | ||
+ | |turquoise1||bgcolor="00f5ff" | | ||
+ | |turquoise2||bgcolor="00e5ee" | | ||
+ | |- | ||
+ | |turquoise3||bgcolor="00c5cd" | | ||
+ | |turquoise4||bgcolor="00868b" | | ||
+ | |cyan1||bgcolor="00ffff" | | ||
+ | |cyan2||bgcolor="00eeee" | | ||
+ | |- | ||
+ | |cyan3||bgcolor="00cdcd" | | ||
+ | |cyan4||bgcolor="008b8b" | | ||
+ | |darkslategray1||bgcolor="97ffff" | | ||
+ | |darkslategray2||bgcolor="8deeee" | | ||
+ | |- | ||
+ | |darkslategray3||bgcolor="79cdcd" | | ||
+ | |darkslategray4||bgcolor="528b8b" | | ||
+ | |aquamarine1||bgcolor="7fffd4" | | ||
+ | |aquamarine2||bgcolor="76eec6" | | ||
+ | |- | ||
+ | |aquamarine3||bgcolor="66cdaa" | | ||
+ | |aquamarine4||bgcolor="458b74" | | ||
+ | |darkseagreen1||bgcolor="c1ffc1" | | ||
+ | |darkseagreen2||bgcolor="b4eeb4" | | ||
+ | |- | ||
+ | |darkseagreen3||bgcolor="9bcd9b" | | ||
+ | |darkseagreen4||bgcolor="698b69" | | ||
+ | |seagreen1||bgcolor="54ff9f" | | ||
+ | |seagreen2||bgcolor="4eee94" | | ||
+ | |- | ||
+ | |seagreen3||bgcolor="43cd80" | | ||
+ | |seagreen4||bgcolor="2e8b57" | | ||
+ | |palegreen1||bgcolor="9aff9a" | | ||
+ | |palegreen2||bgcolor="90ee90" | | ||
+ | |- | ||
+ | |palegreen3||bgcolor="7ccd7c" | | ||
+ | |palegreen4||bgcolor="548b54" | | ||
+ | |springgreen1||bgcolor="00ff7f" | | ||
+ | |springgreen2||bgcolor="00ee76" | | ||
+ | |- | ||
+ | |springgreen3||bgcolor="00cd66" | | ||
+ | |springgreen4||bgcolor="008b45" | | ||
+ | |green1||bgcolor="00ff00" | | ||
+ | |green2||bgcolor="00ee00" | | ||
+ | |- | ||
+ | |green3||bgcolor="00cd00" | | ||
+ | |green4||bgcolor="008b00" | | ||
+ | |chartreuse1||bgcolor="7fff00" | | ||
+ | |chartreuse2||bgcolor="76ee00" | | ||
+ | |- | ||
+ | |chartreuse3||bgcolor="66cd00" | | ||
+ | |chartreuse4||bgcolor="458b00" | | ||
+ | |olivedrab1||bgcolor="c0ff3e" | | ||
+ | |olivedrab2||bgcolor="b3ee3a" | | ||
+ | |- | ||
+ | |olivedrab3||bgcolor="9acd32" | | ||
+ | |olivedrab4||bgcolor="698b22" | | ||
+ | |darkolivegreen1||bgcolor="caff70" | | ||
+ | |darkolivegreen2||bgcolor="bcee68" | | ||
+ | |- | ||
+ | |darkolivegreen3||bgcolor="a2cd5a" | | ||
+ | |darkolivegreen4||bgcolor="6e8b3d" | | ||
+ | |khaki1||bgcolor="fff68f" | | ||
+ | |khaki2||bgcolor="eee685" | | ||
+ | |- | ||
+ | |khaki3||bgcolor="cdc673" | | ||
+ | |khaki4||bgcolor="8b864e" | | ||
+ | |lightgoldenrod1||bgcolor="ffec8b" | | ||
+ | |lightgoldenrod2||bgcolor="eedc82" | | ||
+ | |- | ||
+ | |lightgoldenrod3||bgcolor="cdbe70" | | ||
+ | |lightgoldenrod4||bgcolor="8b814c" | | ||
+ | |lightyellow1||bgcolor="ffffe0" | | ||
+ | |lightyellow2||bgcolor="eeeed1" | | ||
+ | |- | ||
+ | |lightyellow3||bgcolor="cdcdb4" | | ||
+ | |lightyellow4||bgcolor="8b8b7a" | | ||
+ | |yellow1||bgcolor="ffff00" | | ||
+ | |yellow2||bgcolor="eeee00" | | ||
+ | |- | ||
+ | |yellow3||bgcolor="cdcd00" | | ||
+ | |yellow4||bgcolor="8b8b00" | | ||
+ | |gold1||bgcolor="ffd700" | | ||
+ | |gold2||bgcolor="eec900" | | ||
+ | |- | ||
+ | |gold3||bgcolor="cdad00" | | ||
+ | |gold4||bgcolor="8b7500" | | ||
+ | |goldenrod1||bgcolor="ffc125" | | ||
+ | |goldenrod2||bgcolor="eeb422" | | ||
+ | |- | ||
+ | |goldenrod3||bgcolor="cd9b1d" | | ||
+ | |goldenrod4||bgcolor="8b6914" | | ||
+ | |darkgoldenrod1||bgcolor="ffb90f" | | ||
+ | |darkgoldenrod2||bgcolor="eead0e" | | ||
+ | |- | ||
+ | |darkgoldenrod3||bgcolor="cd950c" | | ||
+ | |darkgoldenrod4||bgcolor="8b6508" | | ||
+ | |rosybrown1||bgcolor="ffc1c1" | | ||
+ | |rosybrown2||bgcolor="eeb4b4" | | ||
+ | |- | ||
+ | |rosybrown3||bgcolor="cd9b9b" | | ||
+ | |rosybrown4||bgcolor="8b6969" | | ||
+ | |indianred1||bgcolor="ff6a6a" | | ||
+ | |indianred2||bgcolor="ee6363" | | ||
+ | |- | ||
+ | |indianred3||bgcolor="cd5555" | | ||
+ | |indianred4||bgcolor="8b3a3a" | | ||
+ | |sienna1||bgcolor="ff8247" | | ||
+ | |sienna2||bgcolor="ee7942" | | ||
+ | |- | ||
+ | |sienna3||bgcolor="cd6839" | | ||
+ | |sienna4||bgcolor="8b4726" | | ||
+ | |burlywood1||bgcolor="ffd39b" | | ||
+ | |burlywood2||bgcolor="eec591" | | ||
+ | |- | ||
+ | |burlywood3||bgcolor="cdaa7d" | | ||
+ | |burlywood4||bgcolor="8b7355" | | ||
+ | |wheat1||bgcolor="ffe7ba" | | ||
+ | |wheat2||bgcolor="eed8ae" | | ||
+ | |- | ||
+ | |wheat3||bgcolor="cdba96" | | ||
+ | |wheat4||bgcolor="8b7e66" | | ||
+ | |tan1||bgcolor="ffa54f" | | ||
+ | |tan2||bgcolor="ee9a49" | | ||
+ | |- | ||
+ | |tan3||bgcolor="cd853f" | | ||
+ | |tan4||bgcolor="8b5a2b" | | ||
+ | |chocolate1||bgcolor="ff7f24" | | ||
+ | |chocolate2||bgcolor="ee7621" | | ||
+ | |- | ||
+ | |chocolate3||bgcolor="cd661d" | | ||
+ | |chocolate4||bgcolor="8b4513" | | ||
+ | |firebrick1||bgcolor="ff3030" | | ||
+ | |firebrick2||bgcolor="ee2c2c" | | ||
+ | |- | ||
+ | |firebrick3||bgcolor="cd2626" | | ||
+ | |firebrick4||bgcolor="8b1a1a" | | ||
+ | |brown1||bgcolor="ff4040" | | ||
+ | |brown2||bgcolor="ee3b3b" | | ||
+ | |- | ||
+ | |brown3||bgcolor="cd3333" | | ||
+ | |brown4||bgcolor="8b2323" | | ||
+ | |salmon1||bgcolor="ff8c69" | | ||
+ | |salmon2||bgcolor="ee8262" | | ||
+ | |- | ||
+ | |salmon3||bgcolor="cd7054" | | ||
+ | |salmon4||bgcolor="8b4c39" | | ||
+ | |lightsalmon1||bgcolor="ffa07a" | | ||
+ | |lightsalmon2||bgcolor="ee9572" | | ||
+ | |- | ||
+ | |lightsalmon3||bgcolor="cd8162" | | ||
+ | |lightsalmon4||bgcolor="8b5742" | | ||
+ | |orange1||bgcolor="ffa500" | | ||
+ | |orange2||bgcolor="ee9a00" | | ||
+ | |- | ||
+ | |orange3||bgcolor="cd8500" | | ||
+ | |orange4||bgcolor="8b5a00" | | ||
+ | |darkorange1||bgcolor="ff7f00" | | ||
+ | |darkorange2||bgcolor="ee7600" | | ||
+ | |- | ||
+ | |darkorange3||bgcolor="cd6600" | | ||
+ | |darkorange4||bgcolor="8b4500" | | ||
+ | |coral1||bgcolor="ff7256" | | ||
+ | |coral2||bgcolor="ee6a50" | | ||
+ | |- | ||
+ | |coral3||bgcolor="cd5b45" | | ||
+ | |coral4||bgcolor="8b3e2f" | | ||
+ | |tomato1||bgcolor="ff6347" | | ||
+ | |tomato2||bgcolor="ee5c42" | | ||
+ | |- | ||
+ | |tomato3||bgcolor="cd4f39" | | ||
+ | |tomato4||bgcolor="8b3626" | | ||
+ | |orangered1||bgcolor="ff4500" | | ||
+ | |orangered2||bgcolor="ee4000" | | ||
+ | |- | ||
+ | |orangered3||bgcolor="cd3700" | | ||
+ | |orangered4||bgcolor="8b2500" | | ||
+ | |red1||bgcolor="ff0000" | | ||
+ | |red2||bgcolor="ee0000" | | ||
+ | |- | ||
+ | |red3||bgcolor="cd0000" | | ||
+ | |red4||bgcolor="8b0000" | | ||
+ | |debianred||bgcolor="d70751" | | ||
+ | |deeppink1||bgcolor="ff1493" | | ||
+ | |- | ||
+ | |deeppink2||bgcolor="ee1289" | | ||
+ | |deeppink3||bgcolor="cd1076" | | ||
+ | |deeppink4||bgcolor="8b0a50" | | ||
+ | |hotpink1||bgcolor="ff6eb4" | | ||
+ | |- | ||
+ | |hotpink2||bgcolor="ee6aa7" | | ||
+ | |hotpink3||bgcolor="cd6090" | | ||
+ | |hotpink4||bgcolor="8b3a62" | | ||
+ | |pink1||bgcolor="ffb5c5" | | ||
+ | |- | ||
+ | |pink2||bgcolor="eea9b8" | | ||
+ | |pink3||bgcolor="cd919e" | | ||
+ | |pink4||bgcolor="8b636c" | | ||
+ | |lightpink1||bgcolor="ffaeb9" | | ||
+ | |- | ||
+ | |lightpink2||bgcolor="eea2ad" | | ||
+ | |lightpink3||bgcolor="cd8c95" | | ||
+ | |lightpink4||bgcolor="8b5f65" | | ||
+ | |palevioletred1||bgcolor="ff82ab" | | ||
+ | |- | ||
+ | |palevioletred2||bgcolor="ee799f" | | ||
+ | |palevioletred3||bgcolor="cd6889" | | ||
+ | |palevioletred4||bgcolor="8b475d" | | ||
+ | |maroon1||bgcolor="ff34b3" | | ||
+ | |- | ||
+ | |maroon2||bgcolor="ee30a7" | | ||
+ | |maroon3||bgcolor="cd2990" | | ||
+ | |maroon4||bgcolor="8b1c62" | | ||
+ | |violetred1||bgcolor="ff3e96" | | ||
+ | |- | ||
+ | |violetred2||bgcolor="ee3a8c" | | ||
+ | |violetred3||bgcolor="cd3278" | | ||
+ | |violetred4||bgcolor="8b2252" | | ||
+ | |magenta1||bgcolor="ff00ff" | | ||
+ | |- | ||
+ | |magenta2||bgcolor="ee00ee" | | ||
+ | |magenta3||bgcolor="cd00cd" | | ||
+ | |magenta4||bgcolor="8b008b" | | ||
+ | |orchid1||bgcolor="ff83fa" | | ||
+ | |- | ||
+ | |orchid2||bgcolor="ee7ae9" | | ||
+ | |orchid3||bgcolor="cd69c9" | | ||
+ | |orchid4||bgcolor="8b4789" | | ||
+ | |plum1||bgcolor="ffbbff" | | ||
+ | |- | ||
+ | |plum2||bgcolor="eeaeee" | | ||
+ | |plum3||bgcolor="cd96cd" | | ||
+ | |plum4||bgcolor="8b668b" | | ||
+ | |mediumorchid1||bgcolor="e066ff" | | ||
+ | |- | ||
+ | |mediumorchid2||bgcolor="d15fee" | | ||
+ | |mediumorchid3||bgcolor="b452cd" | | ||
+ | |mediumorchid4||bgcolor="7a378b" | | ||
+ | |darkorchid1||bgcolor="bf3eff" | | ||
+ | |- | ||
+ | |darkorchid2||bgcolor="b23aee" | | ||
+ | |darkorchid3||bgcolor="9a32cd" | | ||
+ | |darkorchid4||bgcolor="68228b" | | ||
+ | |purple1||bgcolor="9b30ff" | | ||
+ | |- | ||
+ | |purple2||bgcolor="912cee" | | ||
+ | |purple3||bgcolor="7d26cd" | | ||
+ | |purple4||bgcolor="551a8b" | | ||
+ | |mediumpurple1||bgcolor="ab82ff" | | ||
+ | |- | ||
+ | |mediumpurple2||bgcolor="9f79ee" | | ||
+ | |mediumpurple3||bgcolor="8968cd" | | ||
+ | |mediumpurple4||bgcolor="5d478b" | | ||
+ | |thistle1||bgcolor="ffe1ff" | | ||
+ | |- | ||
+ | |thistle2||bgcolor="eed2ee" | | ||
+ | |thistle3||bgcolor="cdb5cd" | | ||
+ | |thistle4||bgcolor="8b7b8b" | | ||
+ | |} | ||
+ | |||
+ | The following additional colors are also defined. | ||
+ | |||
+ | {| style="text-align: right; padding-right: 20px;" | ||
+ | !| Name !! Color | ||
+ | !style="width: 100px;"| Name !! Color | ||
+ | !style="width: 100px;"| Name !! Color | ||
+ | |- | ||
+ | |darkgray||bgcolor="a8a8a8" | | ||
+ | |darkblue||bgcolor="00008b" | | ||
+ | |darkcyan||bgcolor="008b8b" | | ||
+ | |- | ||
+ | |darkmagenta||bgcolor="8b008b" | & nbsp; | ||
+ | |darkred||bgcolor="8b000000" | & nbsp; | ||
+ | |darkgreen||bgcolor="006400" | | ||
+ | |} | ||
+ | |||
Line 1,121: | Line 1,708: | ||
|yellowgreen||bgcolor="#99CC33"| | |yellowgreen||bgcolor="#99CC33"| | ||
|} | |} | ||
− | |||
− | |||
== Additional pre-defined colors == | == Additional pre-defined colors == |
Revision as of 05:06, 8 June 2020
-
- Overview
- Color
- Color in MetaPost
-
- Cmd general
- \color
- \MPcolor
- \definecolor
- \setupcolors
- \showcolor
- \usecolor
-
- Cmd Logical palettes
- \definepalet
- \setuppalet
- \showpalet
- \comparepalet
-
- Grps of similar colors
- \definecolorgroup
- \showcolorgroup
-
- Src MkIV color def
- colo-imp-dem.mkiv
- colo-imp-rgb.mkiv
- colo-imp-xwi.mkiv
- colo-imp-ema.mkiv
- colo-imp-x11.mkiv
Contents
Before you start ...
1. It’s usually bad style to use explicit color switches in the text. It’s better to define a semantic command that takes care of the color switching. For example, instead of using \color[red]{important text}
, define
\definehighlight[important][color=red]
and then use \important{important text}
in the text.
2. Colors are not enabled by default in MkII. To enable colors in MkII, use
\setupcolors[state=start]
3. To disable colors in a document, use
\setupcolors[state=stop]
Last manual dedicated to color was issued in 2016
Basic Usage
To color text, use
\color[defined-color]{ ... text ... }
or
\startcolor[defined-color] ... text ... \stopcolor
where defined-color
is a color defined using \definecolor. For example, red
is one of the predefined colors. So, we can use:
Three \color[red]{cool} cats |
or
\startcolor[red] \input tufte \stopcolor
It is also possible to use RGB or CMYK or hex values to color text. The syntax for these is
\colored[settings]{... text ...}
where settings
are the same settings as used by \definecolor. For example:
Three \colored[r=0.1, g=0.8, b=0.8]{colorful} cats |
Note. There is no need to use the color commands directly. Almost all ConTeXt commands accept a color
key, and you can use color=defined-color
. For example,
- To color the section titles red, use
\setuphead[color=red]
- To color the footnotes red, use
\setupfootnotes[color=red]
etc.
Pre-defined colors
Default pre-defined colors
The following colors are pre-defined in ConTeXt (see colo-imp-rgb.mkiv).
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
black | white | ||||||
gray | lightgray | middlegray | darkgray | ||||
red | lightred | middlered | darkred | ||||
green | lightgreen | middlegreen | darkgreen | ||||
blue | lightblue | middleblue | darkblue | ||||
cyan | middlecyan | darkcyan | |||||
magenta | middlemagenta | darkmagenta | |||||
yellow | middleyellow | darkyellow |
Crayola crayon colors
The following colors are defined in colo-imp-crayola.mkiv. These can be loaded using
\usecolors[crayola]
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
Red | Maroon | Scarlet | BrickRed | ||||
EnglishVermilion | MadderLake | PermanentGeraniumLake | MaximumRed | ||||
IndianRed | OrangeRed | SunsetOrange | Bittersweet | ||||
DarkVenetianRed | VenetianRed | LightVenetianRed | VividTangerine | ||||
MiddleRed | BurntOrange | RedOrange | Orange | ||||
MacaroniandCheese | MiddleYellowRed | MangoTango | YellowOrange | ||||
MaximumYellowRed | BananaMania | Maize | OrangeYellow | ||||
Goldenrod | Dandelion | Yellow | GreenYellow | ||||
MiddleYellow | OliveGreen | SpringGreen | MaximumYellow | ||||
Canary | LemonYellow | MaximumGreenYellow | MiddleGreenYellow | ||||
Inchworm | LightChromeGreen | YellowGreen | MaximumGreen | ||||
Asparagus | GrannySmithApple | Fern | MiddleGreen | ||||
Green | MediumChromeGreen | ForestGreen | SeaGreen | ||||
Shamrock | MountainMeadow | JungleGreen | CaribbeanGreen | ||||
TropicalRainForest | MiddleBlueGreen | PineGreen | MaximumBlueGreen | ||||
RobinsEggBlue | TealBlue | LightBlue | Aquamarine | ||||
TurquoiseBlue | OuterSpace | SkyBlue | MiddleBlue | ||||
BlueGreen | PacificBlue | Cerulean | MaximumBlue | ||||
BlueI | CeruleanBlue | Cornflower | GreenBlue | ||||
MidnightBlue | NavyBlue | Denim | BlueIII | ||||
CadetBlue | Periwinkle | BlueII | WildBlueYonder | ||||
Indigo | Manatee | CobaltBlue | CelestialBlue | ||||
BlueBell | MaximumBluePurple | VioletBlue | BlueViolet | ||||
UltramarineBlue | MiddleBluePurple | PurpleHeart | RoyalPurple | ||||
VioletII | MediumViolet | Wisteria | LavenderI | ||||
VividViolet | MaximumPurple | PurpleMountainsMajesty | Fuchsia | ||||
PinkFlamingo | VioletI | BrilliantRose | Orchid | ||||
Plum | MediumRose | Thistle | Mulberry | ||||
RedViolet | MiddlePurple | MaximumRedPurple | JazzberryJam | ||||
Eggplant | Magenta | Cerise | WildStrawberry | ||||
LavenderII | CottonCandy | CarnationPink | VioletRed | ||||
Razzmatazz | PigPink | Carmine | Blush | ||||
TickleMePink | Mauvelous | Salmon | MiddleRedPurple | ||||
Mahogany | Melon | PinkSherbert | BurntSienna | ||||
Brown | Sepia | FuzzyWuzzy | Beaver | ||||
Tumbleweed | RawSienna | VanDykeBrown | Tan | ||||
DesertSand | Peach | BurntUmber | Apricot | ||||
Almond | RawUmber | Shadow | RawSiennaI | ||||
Timberwolf | GoldI | GoldII | Silver | ||||
Copper | AntiqueBrass | Black | CharcoalGray | ||||
Gray | BlueGray | White | RadicalRed | ||||
WildWatermelon | OutrageousOrange | AtomicTangerine | NeonCarrot | ||||
Sunglow | LaserLemon | UnmellowYellow | ElectricLime | ||||
ScreaminGreen | MagicMint | BlizzardBlue | ShockingPink | ||||
RazzleDazzleRose | HotMagenta | PurplePizzazz | AztecGold | ||||
BurnishedBrown | CeruleanFrost | CinnamonSatin | CopperPenny | ||||
CosmicCobalt | GlossyGrape | GraniteGray | GreenSheen | ||||
LilacLuster | MistyMoss | MysticMaroon | PearlyPurple | ||||
PewterBlue | PolishedPine | QuickSilver | RoseDust | ||||
RustyRed | ShadowBlue | ShinyShamrock | SteelTeal | ||||
SugarPlum | TwilightLavender | WintergreenDream | Amethyst | ||||
Citrine | Emerald | Jade | Jasper | ||||
LapisLazuli | Malachite | Moonstone | Onyx | ||||
Peridot | PinkPearl | RoseQuartz | Ruby | ||||
Sapphire | SmokeyTopaz | TigersEye | AquaPearl | ||||
BlackCoralPearl | CaribbeanGreenPearl | CulturedPearl | KeyLimePearl | ||||
MandarinPearl | MidnightPearl | MysticPearl | OceanBluePearl | ||||
OceanGreenPearl | OrchidPearl | RosePearl | SalmonPearl | ||||
SunnyPearl | SunsetPearl |
RAL colors
RAL color system (Deutsches Institut für Gütesicherung und Kennzeichnung) approximate RGB colors (from www.ralcolor.com). These are defined in colo-imp-ral.mkiv and can be loaded using
\usecolors[ral]
Name | Color | Name | Color | Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|---|---|---|---|
RAL1000 | RAL1001 | RAL1002 | RAL1003 | RAL1004 | RAL1005 | ||||||
RAL1006 | RAL1007 | RAL1011 | RAL1012 | RAL1013 | RAL1014 | ||||||
RAL1015 | RAL1016 | RAL1017 | RAL1018 | RAL1019 | RAL1020 | ||||||
RAL1021 | RAL1023 | RAL1024 | RAL1026 | RAL1027 | RAL1028 | ||||||
RAL1032 | RAL1033 | RAL1034 | RAL1035 | RAL1036 | RAL1037 | ||||||
RAL2000 | RAL2001 | RAL2002 | RAL2003 | RAL2004 | RAL2005 | ||||||
RAL2007 | RAL2008 | RAL2009 | RAL2010 | RAL2011 | RAL2012 | ||||||
RAL2013 | RAL3000 | RAL3001 | RAL3002 | RAL3003 | RAL3004 | ||||||
RAL3005 | RAL3007 | RAL3009 | RAL3011 | RAL3012 | RAL3013 | ||||||
RAL3014 | RAL3015 | RAL3016 | RAL3017 | RAL3018 | RAL3020 | ||||||
RAL3022 | RAL3024 | RAL3026 | RAL3027 | RAL3028 | RAL3031 | ||||||
RAL3032 | RAL3033 | RAL4001 | RAL4002 | RAL4003 | RAL4004 | ||||||
RAL4005 | RAL4006 | RAL4007 | RAL4008 | RAL4009 | RAL4010 | ||||||
RAL4011 | RAL4012 | RAL5000 | RAL5001 | RAL5002 | RAL5003 | ||||||
RAL5004 | RAL5005 | RAL5007 | RAL5008 | RAL5009 | RAL5010 | ||||||
RAL5011 | RAL5012 | RAL5013 | RAL5014 | RAL5015 | RAL5017 | ||||||
RAL5018 | RAL5019 | RAL5020 | RAL5021 | RAL5022 | RAL5023 | ||||||
RAL5024 | RAL5025 | RAL5026 | RAL6000 | RAL6001 | RAL6002 | ||||||
RAL6003 | RAL6004 | RAL6005 | RAL6006 | RAL6007 | RAL6008 | ||||||
RAL6009 | RAL6010 | RAL6011 | RAL6012 | RAL6013 | RAL6014 | ||||||
RAL6015 | RAL6016 | RAL6017 | RAL6018 | RAL6019 | RAL6020 | ||||||
RAL6021 | RAL6022 | RAL6024 | RAL6025 | RAL6026 | RAL6027 | ||||||
RAL6028 | RAL6029 | RAL6032 | RAL6033 | RAL6034 | RAL6035 | ||||||
RAL6036 | RAL6037 | RAL6038 | RAL7000 | RAL7001 | RAL7002 | ||||||
RAL7003 | RAL7004 | RAL7005 | RAL7006 | RAL7008 | RAL7009 | ||||||
RAL7010 | RAL7011 | RAL7012 | RAL7013 | RAL7015 | RAL7016 | ||||||
RAL7021 | RAL7022 | RAL7023 | RAL7024 | RAL7026 | RAL7030 | ||||||
RAL7031 | RAL7032 | RAL7033 | RAL7034 | RAL7035 | RAL7036 | ||||||
RAL7037 | RAL7038 | RAL7039 | RAL7040 | RAL7042 | RAL7043 | ||||||
RAL7044 | RAL7045 | RAL7046 | RAL7047 | RAL7048 | RAL8000 | ||||||
RAL8001 | RAL8002 | RAL8003 | RAL8004 | RAL8007 | RAL8008 | ||||||
RAL8011 | RAL8012 | RAL8014 | RAL8015 | RAL8016 | RAL8017 | ||||||
RAL8019 | RAL8022 | RAL8023 | RAL8024 | RAL8025 | RAL8028 | ||||||
RAL8029 | RAL9001 | RAL9002 | RAL9003 | RAL9004 | RAL9005 | ||||||
RAL9006 | RAL9007 | RAL9010 | RAL9011 | RAL9016 | RAL9017 | ||||||
RAL9018 | RAL9022 | RAL9023 |
Solarized colors
Colors based on the Solarized color scheme. These are defined in colo-imp-solarized.mkiv and can be loaded using
\usecolors[solarized]
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
base03 | base02 | base01 | base00 | ||||
base0 | base1 | base2 | base3 | ||||
yellow | orange | red | magenta | ||||
violet | blue | cyan | green |
SVG colors
Colors based on the SVG spec. These are defined in colo-imp-svg.mkiv and can be loaded using
\usecolors[svg]
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
black | navy | darkblue | mediumblue | ||||
blue | darkgreen | green | teal | ||||
darkcyan | deepskyblue | darkturquoise | mediumspringgreen | ||||
lime | springgreen | cyan | aqua | ||||
midnightblue | dodgerblue | lightseagreen | forestgreen | ||||
seagreen | darkslategray | darkslategrey | limegreen | ||||
mediumseagreen | turquoise | royalblue | steelblue | ||||
darkslateblue | mediumturquoise | indigo | darkolivegreen | ||||
cadetblue | cornflowerblue | mediumaquamarine | dimgrey | ||||
dimgray | slateblue | olivedrab | slategrey | ||||
slategray | lightslategray | lightslategrey | mediumslateblue | ||||
lawngreen | chartreuse | aquamarine | maroon | ||||
purple | olive | gray | grey | ||||
skyblue | lightskyblue | blueviolet | darkred | ||||
darkmagenta | saddlebrown | darkseagreen | lightgreen | ||||
mediumpurple | darkviolet | palegreen | darkorchid | ||||
yellowgreen | sienna | brown | darkgray | ||||
darkgrey | lightblue | greenyellow | paleturquoise | ||||
lightsteelblue | powderblue | firebrick | darkgoldenrod | ||||
mediumorchid | rosybrown | darkkhaki | silver | ||||
mediumvioletred | indianred | peru | chocolate | ||||
tan | lightgray | lightgrey | thistle | ||||
orchid | goldenrod | palevioletred | crimson | ||||
gainsboro | plum | burlywood | lightcyan | ||||
lavender | darksalmon | violet | palegoldenrod | ||||
lightcoral | khaki | aliceblue | honeydew | ||||
azure | sandybrown | wheat | beige | ||||
whitesmoke | mintcream | ghostwhite | salmon | ||||
antiquewhite | linen | lightgoldenrodyellow | oldlace | ||||
red | fuchsia | magenta | deeppink | ||||
orangered | tomato | hotpink | coral | ||||
darkorange | lightsalmon | orange | lightpink | ||||
pink | gold | peachpuff | navajowhite | ||||
moccasin | bisque | mistyrose | blanchedalmond | ||||
papayawhip | lavenderblush | seashell | cornsilk | ||||
lemonchiffon | floralwhite | snow | yellow | ||||
lightyellow | ivory | white |
X11 colors
X11_color_names defined in colo-imp-x11.mkiv. These can be loaded using
\usecolors[x11]
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
snow | ghostwhite | whitesmoke | gainsboro | ||||
floralwhite | oldlace | linen | antiquewhite | ||||
papayawhip | blanchedalmond | bisque | peachpuff | ||||
navajowhite | moccasin | cornsilk | ivory | ||||
lemonchiffon | seashell | honeydew | mintcream | ||||
azure | aliceblue | lavender | lavenderblush | ||||
mistyrose | white | black | & nbs[; | darkslategray | |||
dimgray | slategray | lightslategray | gray | ||||
lightgray | midnightblue | navy | navyblue | ||||
cornflowerblue | darkslateblue | slateblue | mediumslateblue | ||||
lightslateblue | mediumblue | royalblue | blue | ||||
dodgerblue | deepskyblue | skyblue | lightskyblue | ||||
steelblue | lightsteelblue | lightblue | powderblue | ||||
paleturquoise | darkturquoise | mediumturquoise | turquoise | ||||
cyan | lightcyan | cadetblue | mediumaquamarine | ||||
aquamarine | darkolivegreen | darkseagreen | seagreen | ||||
mediumseagreen | lightseagreen | palegreen | lightgreen | & nbsp; | |||
springgreen | lawngreen | green | chartreuse | ||||
mediumspringgreen | greenyellow | limegreen | yellowgreen | ||||
forestgreen | olivedrab | darkkhaki | khaki | ||||
palegoldenrod | lightgoldenrodyellow | lightyellow | yellow | ||||
gold | lightgoldenrod | goldenrod | darkgoldenrod | ||||
rosybrown | indianred | saddlebrown | sienna | ||||
peru | burlywood | beige | wheat | ||||
sandybrown | tan | chocolate | firebrick | ||||
brown | darksalmon | salmon | lightsalmon | ||||
orange | darkorange | coral | lightcoral | ||||
tomato | orangered | red | hotpink | ||||
deeppink | pink | lightpink | palevioletred | ||||
maroon | mediumvioletred | violetred | magenta | ||||
violet | plum | orchid | mediumorchid | ||||
darkorchid | darkviolet | blueviolet | purple | ||||
mediumpurple | thistle | snow1 | snow2 | ||||
snow3 | snow4 | seashell1 | seashell2 | ||||
seashell3 | seashell4 | antiquewhite1 | antiquewhite2 | ||||
antiquewhite3 | antiquewhite4 | bisque1 | bisque2 | ||||
bisque3 | bisque4 | peachpuff1 | peachpuff2 | ||||
peachpuff3 | peachpuff4 | navajowhite1 | navajowhite2 | ||||
navajowhite3 | navajowhite4 | lemonchiffon1 | lemonchiffon2 | ||||
lemonchiffon3 | lemonchiffon4 | cornsilk1 | cornsilk2 | ||||
cornsilk3 | cornsilk4 | ivory1 | ivory2 | ||||
ivory3 | ivory4 | honeydew1 | honeydew2 | ||||
honeydew3 | honeydew4 | lavenderblush1 | lavenderblush2 | ||||
lavenderblush3 | lavenderblush4 | mistyrose1 | mistyrose2 | ||||
mistyrose3 | mistyrose4 | azure1 | azure2 | ||||
azure3 | azure4 | slateblue1 | slateblue2 | ||||
slateblue3 | slateblue4 | royalblue1 | royalblue2 | ||||
royalblue3 | royalblue4 | blue1 | blue2 | ||||
blue3 | blue4 | dodgerblue1 | dodgerblue2 | ||||
dodgerblue3 | dodgerblue4 | steelblue1 | steelblue2 | ||||
steelblue3 | steelblue4 | deepskyblue1 | deepskyblue2 | ||||
deepskyblue3 | deepskyblue4 | skyblue1 | skyblue2 | ||||
skyblue3 | skyblue4 | lightskyblue1 | lightskyblue2 | ||||
lightskyblue3 | lightskyblue4 | slategray1 | slategray2 | ||||
slategray3 | slategray4 | lightsteelblue1 | lightsteelblue2 | ||||
lightsteelblue3 | lightsteelblue4 | lightblue1 | lightblue2 | ||||
lightblue3 | lightblue4 | lightcyan1 | lightcyan2 | ||||
lightcyan3 | lightcyan4 | paleturquoise1 | paleturquoise2 | ||||
paleturquoise3 | paleturquoise4 | cadetblue1 | cadetblue2 | ||||
cadetblue3 | cadetblue4 | turquoise1 | turquoise2 | ||||
turquoise3 | turquoise4 | cyan1 | cyan2 | ||||
cyan3 | cyan4 | darkslategray1 | darkslategray2 | ||||
darkslategray3 | darkslategray4 | aquamarine1 | aquamarine2 | ||||
aquamarine3 | aquamarine4 | darkseagreen1 | darkseagreen2 | ||||
darkseagreen3 | darkseagreen4 | seagreen1 | seagreen2 | ||||
seagreen3 | seagreen4 | palegreen1 | palegreen2 | ||||
palegreen3 | palegreen4 | springgreen1 | springgreen2 | ||||
springgreen3 | springgreen4 | green1 | green2 | ||||
green3 | green4 | chartreuse1 | chartreuse2 | ||||
chartreuse3 | chartreuse4 | olivedrab1 | olivedrab2 | ||||
olivedrab3 | olivedrab4 | darkolivegreen1 | darkolivegreen2 | ||||
darkolivegreen3 | darkolivegreen4 | khaki1 | khaki2 | ||||
khaki3 | khaki4 | lightgoldenrod1 | lightgoldenrod2 | ||||
lightgoldenrod3 | lightgoldenrod4 | lightyellow1 | lightyellow2 | ||||
lightyellow3 | lightyellow4 | yellow1 | yellow2 | ||||
yellow3 | yellow4 | gold1 | gold2 | ||||
gold3 | gold4 | goldenrod1 | goldenrod2 | ||||
goldenrod3 | goldenrod4 | darkgoldenrod1 | darkgoldenrod2 | ||||
darkgoldenrod3 | darkgoldenrod4 | rosybrown1 | rosybrown2 | ||||
rosybrown3 | rosybrown4 | indianred1 | indianred2 | ||||
indianred3 | indianred4 | sienna1 | sienna2 | ||||
sienna3 | sienna4 | burlywood1 | burlywood2 | ||||
burlywood3 | burlywood4 | wheat1 | wheat2 | ||||
wheat3 | wheat4 | tan1 | tan2 | ||||
tan3 | tan4 | chocolate1 | chocolate2 | ||||
chocolate3 | chocolate4 | firebrick1 | firebrick2 | ||||
firebrick3 | firebrick4 | brown1 | brown2 | ||||
brown3 | brown4 | salmon1 | salmon2 | ||||
salmon3 | salmon4 | lightsalmon1 | lightsalmon2 | ||||
lightsalmon3 | lightsalmon4 | orange1 | orange2 | ||||
orange3 | orange4 | darkorange1 | darkorange2 | ||||
darkorange3 | darkorange4 | coral1 | coral2 | ||||
coral3 | coral4 | tomato1 | tomato2 | ||||
tomato3 | tomato4 | orangered1 | orangered2 | ||||
orangered3 | orangered4 | red1 | red2 | ||||
red3 | red4 | debianred | deeppink1 | ||||
deeppink2 | deeppink3 | deeppink4 | hotpink1 | ||||
hotpink2 | hotpink3 | hotpink4 | pink1 | ||||
pink2 | pink3 | pink4 | lightpink1 | ||||
lightpink2 | lightpink3 | lightpink4 | palevioletred1 | ||||
palevioletred2 | palevioletred3 | palevioletred4 | maroon1 | ||||
maroon2 | maroon3 | maroon4 | violetred1 | ||||
violetred2 | violetred3 | violetred4 | magenta1 | ||||
magenta2 | magenta3 | magenta4 | orchid1 | ||||
orchid2 | orchid3 | orchid4 | plum1 | ||||
plum2 | plum3 | plum4 | mediumorchid1 | ||||
mediumorchid2 | mediumorchid3 | mediumorchid4 | darkorchid1 | ||||
darkorchid2 | darkorchid3 | darkorchid4 | purple1 | ||||
purple2 | purple3 | purple4 | mediumpurple1 | ||||
mediumpurple2 | mediumpurple3 | mediumpurple4 | thistle1 | ||||
thistle2 | thistle3 | thistle4 |
The following additional colors are also defined.
Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|
darkgray | darkblue | darkcyan | |||
darkmagenta | & nbsp; | darkred | & nbsp; | darkgreen |
XWI Colors
The colors are defined in colo-imp-xwi.mkiv. The name suggests that they were from some color file distributed as part of the X_Window_System. These are a subset of the X11 colors, shown earlier. To load these colors, use:
\usecolors[xwi]
This loads the following additional colors:
Name | Color | Name | Color | Name | Color | Name | Color |
---|---|---|---|---|---|---|---|
aliceblue | antiquewhite | aquamarine | azure | ||||
beige | bisque | black | blanchedalmond | ||||
blue | blueviolet | brown | burlywood | ||||
cadetblue | chartreuse | chocolate | coral | ||||
cornflowerblue | cornsilk | cyan | darkgoldenrod | ||||
darkgreen | darkkhaki | darkolivegreen | darkorange | ||||
darkorchid | darksalmon | darkseagreen | darkslateblue | ||||
darkturquoise | darkviolet | deeppink | deepskyblue | ||||
dodgerblue | firebrick | floralwhite | forestgreen | ||||
gainsboro | ghostwhite | gold | goldenrod | ||||
green | greenyellow | honeydew | hotpink | ||||
indianred | ivory | khaki | lavender | ||||
lavenderblush | lawngreen | lemonchiffon | lightblue | ||||
lightcoral | lightcyan | lightgoldenrod | lightgoldenrodyellow | ||||
lightpink | lightsalmon | lightseagreen | lightskyblue | ||||
lightslateblue | lightsteelblue | lightyellow | limegreen | ||||
linen | magenta | maroon | mediumaquamarine | ||||
mediumblue | mediumorchid | mediumpurple | mediumseagreen | ||||
mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | ||||
midnightblue | mintcream | mistyrose | moccasin | ||||
navajowhite | navy | navyblue | oldlace | ||||
olivedrab | orange | orangered | orchid | ||||
palegoldenrod | palegreen | paleturquoise | palevioletred | ||||
papayawhip | peachpuff | peru | pink | ||||
plum | powderblue | purple | red | ||||
rosybrown | royalblue | saddlebrown | salmon | ||||
sandybrown | seagreen | seashell | sienna | ||||
skyblue | slateblue | snow | springgreen | ||||
steelblue | tan | thistle | tomato | ||||
turquoise | violet | violetred | wheat | ||||
white | whitesmoke | yellow | yellowgreen |
Additional pre-defined colors
In addition to the above, there are other pre-defined colors.
x11 | \usecolors[x11]
|
colo-imp-x11.mkiv | 658 extended Xorg color keywords (WWW), defined in hex RGB |
ema | \usecolors[ema]
|
colo-imp-ema.mkiv | 549 Emacs colors |
Defining New Colors
ConTeXt supports several color models:
- CMYK, typically used for printing
- RGB, HSV/HSL and HWB, typically used for screen display,
- Transparencies,
- Spot colors, typically used for offset printing.
New colors may be defined in the following ways
Name | Syntax (and Example) | Explanation |
---|---|---|
RGB color model | \definecolor[...][r=..., g=..., b=...] For example, \definecolor[lime][r=0.75, g=1, b=0] This is \color[lime]{a new color} that we defined |
The values for r , g , and b are floating point number between 0 and 1 .
|
CMYK color model | \definecolor[...][c=.., m=.., y=.., k=..] For example, \definecolor[lime][c=0.25, m=0, y=1, k=0] This is \color[lime]{a new color} that we defined |
The values for c , m , y and k are floating point number between 0 and 1 .
|
HSV/HSL color model | \definecolor[...][h=.., s=.., v=..] For example, \definecolor[lime][h=75, s=1, v=1] This is \color[lime]{a new color} that we defined |
The value for h (hue) is between 0 and 360 ; the values for s (saturation), v (value/brightness) are floating point numbers between 0 and 1 .
|
HWB color model | \definecolor[...][h=.., w=.., b=..] For example, \definecolor[something][h=75, w=0.5, b=.1] This is \color[something]{a new color} that we defined |
The value for h (hue) is between 0 and 360 ; the values for w (whiteness), b (blackness) are floating point numbers between 0 and 1 . This mostly unknown color model is also used in CSS3/SVG.
|
Hex | \definecolor[...][x=...] For example, \definecolor[lime][x=BFFF00] This is \color[lime]{a new color} that we defined |
The value for x is a three-byte hexadecimal number where the bytes represent the red, green, and blue values. This follows the HTML and CSS style of defining colors.
|
Gray scale | \definecolor[...][s=...] For example, \definecolor[screen][s=0.5] This is \color[screen]{a new color} that we defined |
The value for s is a floating point number between 0 and 1 , representing the grayness value (1 represents white, 0 represents black).
|
Cloning existing colors
You can clone an existing color using
\definecolor[new-color][old-color]
For example
\usecolors[xwi] \definecolor[highlight][yellow] \defineframed [important] [location=low, frame=off, background=color, backgroundcolor=highlight] This is a \important{important}word. \definecolor[highlight][lavenderblush] This is a \important{important}word. |
Adapting existing colors
TODO: add details about this (See: To-Do List) |
Advanced Usage
Changing color of entire document
To change the main text color of the document use
\setupcolors[textcolor=defined-color]
For example,
\setupcolors[textcolor=blue] \starttext text \stoptext |
Changing background color of page
The background color of the page can be changed using
\setupbackgrounds[page][background=color,backgroundcolor=defined-color]
For example,
\setuppapersize[A10] \setupbackgrounds[page][background=color,backgroundcolor=blue] \starttext text \stoptext |
Using colors in MetaPost
A color defined in TeX is available in MetaPost using \MPcolor{...}
. For example:
\definecolor[highlight][r=0.8,g=0.8,b=0] \starttext \color[highlight]{Highlighted text in TeX} \startMPcode label("Highlighted text in MetaPost", origin) withcolor \MPcolor{highlight}; \stopMPcode |
Note that \MPcolor{...}
behaves similar to a color
primitive in MetaPost. For example, the following is valid MetaPost code.
color myColor; myColor = 0.5[\MPcolor{highlight}, white];
For more further reading: Color in MetaPost.
Testing if color is defined
To test if a color is defined, use
Usage:
\doifcolor{color-name}{... if branch ... } \doifcolorelse{color-name}{... if branch ...}{... else branch ...}
Viewing pre-defined color
View all defined colors
To view pre-defined colors, you can use \showcolor. For example, to see all the colors defined in colo-imp-x11.mkiv, use (output truncated for display here ...)
\showcolor[x11] |
If you use \showcolor without any argument, all currently defined colors are shown.
View specific defined colors
To view the components of a defined color, you can use:
\showcolorcomponents[color-1, color-2]
For example,
\showcolorcomponents[red,middlered,darkred] |
\colorcompoents{defined-color} \tranparencycomponents{defined-color} \processcolorcomponents{defined-color}
For example,
\startlines \colorcomponents{red} \transparencycomponents{red} \processcolorcomponents{red} \stoplines |
|
Further reading and specialized topics
- Color Palettes
- Transparency
- Spot Colors
- References
- Paletton - Website to choose color palettes
- ColorBrewer - website to choose colors for maps and graphics.
- Tina Sutton, Bride M Whelan: The Complete Color Harmony. Rockport Publishers (2004). ISBN 978-1592530311 (recommanded in the mailing list)