Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: HTML color names and codes in sorted JavaScript arrays
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/2/2007 at 07:52 PM Reply With Quote
HTML color names and codes in sorted JavaScript arrays


Code:

// sorted by color names
var A_COLORS = [ 'aliceblue', 'F0F8FF', 'antiquewhite', 'FAEBD7', 'aqua', '00FFFF', 'aquamarine', '7FFFD4', 'azure', 'F0FFFF', 'beige', 'F5F5DC', 'bisque', 'FFE4C4', 'black', '000000', 'blanchedalmond', 'FFEBCD', 'blue', '0000FF', 'blueviolet', '8A2BE2', 'brown', 'A52A2A', 'burlywood', 'DEB887', 'cadetblue', '5F9EA0', 'chartreuse', '7FFF00', 'chocolate', 'D2691E', 'coral', 'FF7F50', 'cornflowerblue', '6495ED', 'cornsilk', 'FFF8DC', 'crimson', 'DC143C', 'cyan', '00FFFF', 'darkblue', '00008B', 'darkcyan', '008B8B', 'darkgoldenr0d', 'B8860B', 'darkgray', 'A9A9A9', 'darkgreen', '006400', 'darkkhaki', 'BDB76B', 'darkmagenta', '8B008B', 'darkolivegreen', '556B2F', 'darkorange', 'FF8C00', 'darkorchid', '9932CC', 'darkred', '8B0000', 'darksalmon', 'E9967A', 'darkseagreen', '8FBC8F', 'darkslateblue', '483D8B', 'darkslategray', '2F4F4F', 'darkturquoise', '00CED1', 'darkviolet', '9400D3', 'deeppink', 'FF1493', 'deepskyblue', '00BFFF', 'dimgray', '696969', 'dodgerblue', '1E90FF', 'firebrick', 'B22222', 'floralwhite', 'FFFAF0', 'forestgreen', '228B22', 'fuchsia', 'FF00FF', 'gainsboro', 'DCDCDC', 'ghostwhite', 'F8F8FF', 'gold', 'FFD700', 'goldenrod', 'DAA520', 'gray', '808080', 'green', '008000', 'greenyellow', 'ADFF2F', 'honeydew', 'F0FFF0', 'hotpink', 'FF69B4', 'indianred', 'CD5C5C', 'indigo', '4B0082', 'ivory', 'FFFFF0', 'khaki', 'F0E68C', 'lavender', 'E6E6FA', 'lavenderblush', 'FFF0F5', 'lawngreen', '7CFC00', 'lemonchiffon', 'FFFACD', 'lightblue', 'ADD8E6', 'lightcoral', 'F08080', 'lightcyan', 'E0FFFF', 'lightgoldenrodyellow', 'FAFAD2', 'lightgreen', '90EE90', 'lightgrey', 'D3D3D3', 'lightpink', 'FFB6C1', 'lightsalmon', 'FFA07A', 'lightseagreen', '20B2AA', 'lightskyblue', '87CEFA', 'lightslategray', '778899', 'lightsteelblue', 'B0C4DE', 'lightyellow', 'FFFFE0', 'lime', '00FF00', 'limegreen', '32CD32', 'linen', 'FAF0E6', 'magenta', 'FF00FF', 'maroon', '800000', 'mediumaquamarine', '66CDAA', 'mediumblue', '0000CD', 'mediumorchid', 'BA55D3', 'mediumpurple', '9370DB', 'mediumseagreen', '3CB371', 'mediumslateblue', '7B68EE', 'mediumspringgreen', '00FA9A', 'mediumturquoise', '48D1CC', 'mediumvioletred', 'C71585', 'midnightblue', '191970', 'mintcream', 'F5FFFA', 'mistyrose', 'FFE4E1', 'moccasin', 'FFE4B5', 'navajowhite', 'FFDEAD', 'navy', '000080', 'oldlace', 'FDF5E6', 'olive', '808000', 'olivedrab', '6B8E23', 'orange', 'FFA500', 'orangered', 'FF4500', 'orchid', 'DA70D6', 'palegoldenrod', 'EEE8AA', 'palegreen', '98FB98', 'paleturquoise', 'AFEEEE', 'palevioletred', 'DB7093', 'papayawhip', 'FFEFD5', 'peachpuff', 'FFDAB9', 'peru', 'CD853F', 'pink', 'FFC0CB', 'plum', 'DDA0DD', 'powderblue', 'B0E0E6', 'purple', '800080', 'red', 'FF0000', 'rosybrown', 'BC8F8F', 'royalblue', '4169E1', 'saddlebrown', '8B4513', 'salmon', 'FA8072', 'sandybrown', 'F4A460', 'seagreen', '2E8B57', 'seashell', 'FFF5EE', 'sienna', 'A0522D', 'silver', 'C0C0C0', 'skyblue', '87CEEB', 'slateblue', '6A5ACD', 'slategray', '708090', 'snow', 'FFFAFA', 'springgreen', '00FF7F', 'steelblue', '4682B4', 'tan', 'D2B48C', 'teal', '008080', 'thistle', 'D8BFD8', 'tomato', 'FF6347', 'turquoise', '40E0D0', 'violet', 'EE82EE', 'wheat', 'F5DEB3', 'white', 'FFFFFF', 'whitesmoke', 'F5F5F5', 'yellow', 'FFFF00', 'yellowgreen', '9ACD32'];

Code:

// sorted by hue (RGB)
var A_COLORS = [ 'white','FFFFFF','ivory','FFFFF0','lightyellow','FFFFE0','yellow','FFFF00','snow','FFFAFA','floralwhite','FFFAF0','lemonchiff on','FFFACD', 'cornsilk','FFF8DC','seashell','FFF5EE','lavenderblush','FFF0F5','papayawhip','FFEFD5','blanchedalmond','FFEBCD','mistyrose','F FE4E1', 'bisque','FFE4C4','moccasin','FFE4B5','navajowhite','FFDEAD','peachpuff','FFDAB9','gold','FFD700','pink','FFC0CB','lightpink ','FFB6C1', 'orange','FFA500','lightsalmon','FFA07A','darkorange','FF8C00','coral','FF7F50','hotpink','FF69B4','tomato','FF6347','oranger ed','FF4500', 'deeppink','FF1493','magenta','FF00FF','fuchsia','FF00FF','red','FF0000','oldlace','FDF5E6','lightgoldenrodyellow','FAFAD2',' linen', 'FAF0E6','antiquewhite','FAEBD7','salmon','FA8072','ghostwhite','F8F8FF','mintcream','F5FFFA','whitesmoke','F5F5F5','beige',' F5F5DC', 'wheat','F5DEB3','sandybrown','F4A460','azure','F0FFFF','honeydew','F0FFF0','aliceblue','F0F8FF','khaki','F0E68C','lightcoral ','F08080', 'palegoldenrod','EEE8AA','violet','EE82EE','darksalmon','E9967A','lavender','E6E6FA','lightcyan','E0FFFF','burlywood','DEB887' ,'plum', 'DDA0DD','gainsboro','DCDCDC','crimson','DC143C','palevioletred','DB7093','goldenrod','DAA520','orchid','DA70D6','thistle','D 8BFD8', 'lightgrey','D3D3D3','tan','D2B48C','chocolate','D2691E','peru','CD853F','indianred','CD5C5C','mediumvioletred','C71585','sil ver', 'C0C0C0','darkkhaki','BDB76B','rosybrown','BC8F8F','mediumorchid','BA55D3','darkgoldenr0d','B8860B','firebrick','B22222','powde rblue', 'B0E0E6','lightsteelblue','B0C4DE','paleturquoise','AFEEEE','greenyellow','ADFF2F','lightblue','ADD8E6','darkgray','A9A9A9','br own', 'A52A2A','sienna','A0522D','yellowgreen','9ACD32','darkorchid','9932CC','palegreen','98FB98','darkviolet','9400D3','mediumpurpl e', '9370DB','lightgreen','90EE90','darkseagreen','8FBC8F','saddlebrown','8B4513','darkmagenta','8B008B','darkred','8B0000','bluevi olet', '8A2BE2','lightskyblue','87CEFA','skyblue','87CEEB','gray','808080','olive','808000','purple','800080','maroon','800000','a quamarine', '7FFFD4','chartreuse','7FFF00','lawngreen','7CFC00','mediumslateblue','7B68EE','lightslategray','778899','slategray','708090',' olivedrab', '6B8E23','slateblue','6A5ACD','dimgray','696969','mediumaquamarine','66CDAA','cornflowerblue','6495ED','cadetblue','5F9EA0', 'darkolivegreen','556B2F','indigo','4B0082','mediumturquoise','48D1CC','darkslateblue','483D8B','steelblue','4682B4','royalblue' , '4169E1','turquoise','40E0D0','mediumseagreen','3CB371','limegreen','32CD32','darkslategray','2F4F4F','seagreen','2E8B57','fore stgreen', '228B22','lightseagreen','20B2AA','dodgerblue','1E90FF','midnightblue','191970','cyan','00FFFF','aqua','00FFFF','springgreen', '00FF7F', 'lime','00FF00','mediumspringgreen','00FA9A','darkturquoise','00CED1','deepskyblue','00BFFF','darkcyan','008B8B','teal','008080 ','green', '008000','darkgreen','006400','blue','0000FF','mediumblue','0000CD','darkblue','00008B','navy','000080','black','000000'];


Code:

// sorted by brightness then by hue (R+G+B, RGB)
var A_COLORS = [ 'white','FFFFFF','snow','FFFAFA','ghostwhite','F8F8FF','ivory','FFFFF0','mintcream','F5FFFA','azure','F0FFFF','floralwhite', 'FFFAF0', 'aliceblue','F0F8FF','lavenderblush','FFF0F5','seashell','FFF5EE','whitesmoke','F5F5F5','honeydew','F0FFF0','lightyellow','FFFF E0', 'lightcyan','E0FFFF','oldlace','FDF5E6','cornsilk','FFF8DC','linen','FAF0E6','lemonchiffon','FFFACD','lightgoldenrodyellow','FA FAD2', 'beige','F5F5DC','lavender','E6E6FA','mistyrose','FFE4E1','papayawhip','FFEFD5','antiquewhite','FAEBD7','blanchedalmond','FFEBC D', 'bisque','FFE4C4','moccasin','FFE4B5','gainsboro','DCDCDC','peachpuff','FFDAB9','paleturquoise','AFEEEE','navajowhite','FFDEAD ', 'pink','FFC0CB','wheat','F5DEB3','palegoldenrod','EEE8AA','lightgrey','D3D3D3','lightpink','FFB6C1','powderblue','B0E0E6','th istle', 'D8BFD8','lightblue','ADD8E6','khaki','F0E68C','violet','EE82EE','plum','DDA0DD','lightsteelblue','B0C4DE','aquamarine','7FFF D4', 'lightskyblue','87CEFA','silver','C0C0C0','skyblue','87CEEB','palegreen','98FB98','orchid','DA70D6','burlywood','DEB887','hot pink', 'FF69B4','lightsalmon','FFA07A','tan','D2B48C','lightgreen','90EE90','yellow','FFFF00','magenta','FF00FF','fuchsia','FF00FF' ,'aqua', '00FFFF','cyan','00FFFF','darkgray','A9A9A9','darksalmon','E9967A','sandybrown','F4A460','lightcoral','F08080','turquoise','4 0E0D0', 'salmon','FA8072','cornflowerblue','6495ED','mediumturquoise','48D1CC','mediumorchid','BA55D3','darkkhaki','BDB76B','palevioletre d', 'DB7093','mediumpurple','9370DB','mediumaquamarine','66CDAA','greenyellow','ADFF2F','rosybrown','BC8F8F','darkseagreen','8FBC8F' , 'gold','FFD700','mediumslateblue','7B68EE','coral','FF7F50','deepskyblue','00BFFF','dodgerblue','1E90FF','tomato','FF6347', 'deeppink','FF1493','orange','FFA500','goldenrod','DAA520','darkturquoise','00CED1','cadetblue','5F9EA0','yellowgreen','9ACD32 ', 'lightslategray','778899','darkorchid','9932CC','blueviolet','8A2BE2','mediumspringgreen','00FA9A','peru','CD853F','slateblue', '6A5ACD','darkorange','FF8C00','royalblue','4169E1','indianred','CD5C5C','gray','808080','slategray','708090','chartreuse', '7FFF00','springgreen','00FF7F','steelblue','4682B4','lightseagreen','20B2AA','lawngreen','7CFC00','darkviolet','9400D3', 'mediumvioletred','C71585','mediumseagreen','3CB371','chocolate','D2691E','darkgoldenr0d','B8860B','orangered','FF4500','dimgray ', '696969','limegreen','32CD32','crimson','DC143C','sienna','A0522D','olivedrab','6B8E23','darkmagenta','8B008B','darkcyan','00 8B8B', 'darkslateblue','483D8B','seagreen','2E8B57','olive','808000','purple','800080','teal','008080','red','FF0000','lime','00FF 00', 'blue','0000FF','brown','A52A2A','firebrick','B22222','darkolivegreen','556B2F','saddlebrown','8B4513','forestgreen','228B22', 'indigo','4B0082','darkslategray','2F4F4F','mediumblue','0000CD','midnightblue','191970','darkred','8B0000','darkblue','00008B ', 'maroon','800000','green','008000','navy','000080','darkgreen','006400','black','000000'];
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/2/2007 at 07:57 PM Reply With Quote

note that magenta and cyan have alternative names fuchsia and aqua
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004