ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • List of recognized HTML colors
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts the HTML color into RGB color.
Example
Trace(HTMLToRGB("AliceBlue")) // Returns 16775408
Syntax
<Result> = HTMLToRGB(<Color>)
<Result>: Integer
RGB color corresponding ot the specified HTML color. This color is the result of the following formula:
Color = 65536 * Blue component + 256 * Green component + Red component.
<Color>: Character string
HTML color expressed in one of the following formats:
  • hexadecimal notation (#f00 or #ff0000 for example).
  • RGB notation (RGB(100%, 0%, 0%) for example).
  • HTML name of the color (see the list below).
Remarks

List of recognized HTML colors

The recognized HTML colors are as follows:
HTML nameHexadecimal notationHTML nameHexadecimal notation
AliceBlue#F0F8FFBlack#000000
AntiqueWhite#FAEBD7BlanchedAlmond#FFEBCD
Aqua#00FFFFBlue#0000FF
Aquamarine#7FFFD4BlueViolet#8A2BE2
Azure#F0FFFFBrown#A52A2A
Beige#F5F5DCBisque#FFE4C4
BurlyWood#DEB887
HTML nameHexadecimal notationHTML nameHexadecimal notation
CadetBlue#5F9EA0CornflowerBlue#6495ED
Chartreuse#7FFF00Cornsilk#FFF8DC
Chocolate#D2691ECrimson#DC143C
Coral#FF7F50Cyan#00FFFF
HTML nameHexadecimal notationHTML nameHexadecimal notation
DarkBlue#00008BDarkSalmon#E9967A
DarkCyan#008B8BDarkSeaGreen#8FBC8F
DarkGoldenrod#B8860BDarkSlateBlue#483D8B
DarkGray / DarkGrey†#A9A9A9DarkSlateGray / DarkSlateGrey†#2F4F4F
DarkGreen#006400DarkTurquoise#00CED1
DarkKhaki#BDB76BDarkViolet#9400D3
DarkMagenta#8B008BDeepPink#FF1493
DarkOliveGreen#556B2FDeepSkyBlue#00BFFF
DarkOrange#FF8C00DimGray / DimGrey†#696969
DarkOrchid#9932CCDodgerBlue#1E90FF
DarkRed#8B0000
HTML nameHexadecimal notationHTML nameHexadecimal notation
FireBrick#B22222Green#008000
FloralWhite#FFFAF0GreenYellow#ADFF2F
ForestGreen#228B22Honeydew#F0FFF0
Fuchsia#FF00FFHotPink#FF69B4
Gainsboro#DCDCDCIndianRed#CD5C5C
GhostWhite#F8F8FFIndigo#4B0082
Gold#FFD700Ivory#FFFFF0
Goldenrod#DAA520Khaki#F0E68C
Gray / Grey†#808080
HTML nameHexadecimal notationHTML nameHexadecimal notation
Lavender#E6E6FALightPink#FFB6C1
LavenderBlush#FFF0F5LightSalmon#FFA07A
LawnGreen#7CFC00LightSeaGreen#20B2AA
LemonChiffon#FFFACDLightSkyBlue#87CEFA
LightBlue#ADD8E6LightSlateGray / LightSlateGrey†#778899
LightCoral#F08080LightSteelBlue#B0C4DE
LightCyan#E0FFFFLightYellow#FFFFE0
LightGoldenrodYellow#FAFAD2Lime#00FF00
LightGreen#90EE90LimeGreen#32CD32
LightGray† / LightGrey#D3D3D3Linen#FAF0E6
HTML nameHexadecimal notationHTML nameHexadecimal notation
Magenta#FF00FFMediumTurquoise#48D1CC
Maroon#800000MediumVioletRed#C71585
MediumAquamarine#66CDAAMidnightBlue#191970
MediumBlue#0000CDMintCream#F5FFFA
MediumOrchid#BA55D3MistyRose#FFE4E1
MediumPurple#9370DBMoccasin#FFE4B5
MediumSeaGreen#3CB371NavajoWhite#FFDEAD
MediumSlateBlue#7B68EENavy#000080
MediumSpringGreen#00FA9A
HTML nameHexadecimal notationHTML nameHexadecimal notation
OldLace#FDF5E6PapayaWhip#FFEFD5
Olive#808000PeachPuff#FFDAB9
OliveDrab#6B8E23Peru#CD853F
Orange#FFA500Pink#FFC0CB
OrangeRed#FF4500Plum#DDA0DD
Orchid#DA70D6PowderBlue#B0E0E6
PaleGoldenrod#EEE8AAPurple#800080
PaleGreen#98FB98Red#FF0000
PaleTurquoise#AFEEEERosyBrown#BC8F8F
PaleVioletRed#DB7093RoyalBlue#4169E1
HTML nameHexadecimal notationHTML nameHexadecimal notation
SaddleBrown#8B4513SteelBlue#4682B4
Salmon#FA8072Tan#D2B48C
SandyBrown#F4A460Teal#008080
SeaGreen#2E8B57Thistle#D8BFD8
Seashell#FFF5EETomato#FF6347
Sienna#A0522DTurquoise#40E0D0
Silver#C0C0C0Violet#EE82EE
SkyBlue#87CEEBWheat#F5DEB3
SlateBlue#6A5ACDWhite#F5F5F5
SlateGray / SlateGrey†#708090WhiteSmoke#F5F5F5
Snow#FFFAFAYellow#FFFF00
SpringGreen#00FF7FYellowGreen#9ACD32
Business / UI classification: Neutral code
Component: wd300std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/05/2023

Send a report | Local help