Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


HSL is similar to RGB in that is calculate a color, but HSL components have different meaning. The H component is Hue, which is any of 255 base colors. There is generally no way to interpret what color this component might represent, but you can use MS Paint's Color Palette window to determine the value of a hue you're interested in. Why use HSL then? Because you may want to garauntee guarantee that any color be of a certain darkness or grayness. This is where the other two components come in. The S component is Saturation, or the purity of the color. When saturation is 255, then the hue is at it's purest, while a saturation level of 0 is pure gray. Any value in between is a blend of the hue with a corresponding amount of gray. The final component, L, is Luminance. A value of 255 for luminance results in pure white, while a value of 0 results in pure black. Any value in between results in a brighter or darker version of the color.

To complete the explaination explanation of static colors, here are four ways of setting the Color property to bright blue:

...

As an added convenience, you may specify any standard HTML color name. The currently available colors are listed below: 

Color NameColor
AliceBlue


Background Color
color#F0F8FF

 


AntiqueWhite


Background Color
color#FAEBD7

 


Aqua


Background Color
color#00FFFF

 


Aquamarine


Background Color
color#7FFFD4

 


Azure


Background Color
color#F0FFFF

 


Beige


Background Color
color#F5F5DC

 


Bisque


Background Color
color#FFE4C4

 


Black


Background Color
 
color
BlanchedAlmond
#000000

 


BlueBlanchedAlmond


Background Color
color
 
BlueViolet
#FFEBCD

 


BlueBrown


Background Color
 
color
BurlyWood
#0000FF

 


BlueVioletCadetBlue


Background Color
 
color
Chartreuse
#8A2BE2

 


BrownChocolate


Background Color
 
color
Coral
#A52A2A

 


BurlyWoodCornflowerBlue


Background Color
 
color
Cornsilk
#DEB887

 


CadetBlueCrimson


Background Color
 
color
Cyan
#5F9EA0

 


Chartreuse


Background Color
DarkBlue
 
color
DarkCyan
#7FFF00

 


DarkGoldenRodChocolate


Background Color
color
 
DarkGray
#D2691E

 


CoralDarkGrey


Background Color
 
color
DarkGreen
#FF7F50

 


CornflowerBlueDarkKhaki


Background Color
 
color
DarkMagenta
#6495ED

 


CornsilkDarkOliveGreen


Background Color
 
color
DarkOrange
#FFF8DC

 


CrimsonDarkOrchid


Background Color
 
color
DarkRed
#DC143C

 


CyanDarkSalmon


Background Color
 
color
DarkSeaGreen
#00FFFF

 


DarkBlue


Background Color
DarkSlateBlue
 
color
DarkSlateGray
#00008B

 


DarkSlateGreyDarkCyan


Background Color
color
 
DarkTurquoise
#008B8B

 


DarkGoldenRodDarkViolet


Background Color
 
color
DeepPink
#B8860B

 


DarkGrayDeepSkyBlue


Background Color
 
color
DimGray
#A9A9A9

 


DarkGreyDimGrey


Background Color
 
color
DodgerBlue
#A9A9A9

 


DarkGreenFireBrick


Background Color
 
color
FloralWhite
#006400

 


DarkKhakiForestGreen


Background Color
 
color
Fuchsia
#BDB76B

 


DarkMagenta


Background Color
Gainsboro
 
color
GhostWhite
#8B008B

 


GoldDarkOliveGreen


Background Color
color
 
GoldenRod
#556B2F

 


DarkOrangeGray


Background Color
 
color
Grey
#FF8C00

 


DarkOrchidGreen


Background Color
 
color
GreenYellow
#9932CC

 


DarkRedHoneyDew


Background Color
 
color
HotPink
#8B0000

 


DarkSalmonIndianRed


Background Color
 
color
Indigo
#E9967A

 


DarkSeaGreenIvory


Background Color
 
color
Khaki
#8FBC8F

 


DarkSlateBlue


Background Color
Lavender
 
color
LavenderBlush
#483D8B

 


LawnGreenDarkSlateGray


Background Color
color
 
LemonChiffon
#2F4F4F

 


DarkSlateGreyLightBlue


Background Color
 
color
LightCoral
#2F4F4F

 


DarkTurquoiseLightCyan


Background Color
 
color
LightGoldenRodYellow
#00CED1

 


DarkVioletLightGray


Background Color
 
color
LightGrey
#9400D3

 


DeepPinkLightGreen


Background Color
 
color
LightPink
#FF1493

 


DeepSkyBlueLightSalmon


Background Color
 
color
LightSeaGreen
#00BFFF

 


DimGray


Background Color
LightSkyBlue
 
color
LightSlateGray
#696969

 


LightSlateGreyDimGrey


Background Color
color
 
LightSteelBlue
#696969

 


DodgerBlueLightYellow


Background Color
 
color
Lime
#1E90FF

 


FireBrickLimeGreen


Background Color
 
color
Linen
#B22222

 


FloralWhiteMagenta


Background Color
 
color
Maroon
#FFFAF0

 


ForestGreenMediumAquaMarine


Background Color
 
color
MediumBlue
#228B22

 


FuchsiaMediumOrchid


Background Color
 
color
MediumPurple
#FF00FF

 


Gainsboro


Background Color
MediumSeaGreen
 
color
MediumSlateBlue
#DCDCDC

 


MediumSpringGreenGhostWhite


Background Color
color
 
MediumTurquoise
#F8F8FF

 


GoldMediumVioletRed


Background Color
 
color
MidnightBlue
#FFD700

 


GoldenRodMintCream


Background Color
 
color
MistyRose
#DAA520

 


GrayMoccasin


Background Color
 
color
NavajoWhite
#808080

 


GreyNavy


Background Color
 
color
OldLace
#808080

 


GreenOlive


Background Color
 
color
OliveDrab
#008000

 


GreenYellow


Background Color
Orange
 
color
OrangeRed
#ADFF2F

 


OrchidHoneyDew


Background Color
color
 
PaleGoldenRod
#F0FFF0

 


HotPinkPaleGreen


Background Color
 
color
PaleTurquoise
#FF69B4

 


IndianRedPaleVioletRed


Background Color
 
color
PapayaWhip
#CD5C5C

 


IndigoPeachPuff


Background Color
 
color
Peru
#4B0082

 


IvoryPink


Background Color
 
color
Plum
#FFFFF0

 


KhakiPowderBlue


Background Color
 
color
Purple
#F0E68C

 


Lavender


Background Color
Red
 
color
RosyBrown
#E6E6FA

 


RoyalBlueLavenderBlush 


Background Color
color
SaddleBrown
#FFF0F5



 LawnGreenSalmon


Background Color
 
color
SandyBrown
#7CFC00

 


LemonChiffonSeaGreen


Background Color
 
color
SeaShell
#FFFACD

 


LightBlueSienna


Background Color
 
color
Silver
#ADD8E6

 


LightCoralSkyBlue


Background Color
 
color
SlateBlue
#F08080

 


LightCyanSlateGray


Background Color
 
color
SlateGrey
#E0FFFF

 


LightGoldenRodYellow


Background Color
Snow
 
color
SpringGreen 
SteelBlue 
Tan 
Teal 
Thistle 
Tomato 
Turquoise 
Wheat 
White 
Yellow 
WhiteSmoke 
#FAFAD2

 


LightGray


Background Color
color#D3D3D3
 


LightGrey


Background Color
color#D3D3D3
 


LightGreen


Background Color
color#90EE90
 


LightPink


Background Color
color#FFB6C1
 


LightSalmon


Background Color
color#FFA07A
 


LightSeaGreen


Background Color
color#20B2AA
 


LightSkyBlue


Background Color
color#87CEFA
 


LightSlateGray


Background Color
color#778899
 


LightSlateGrey


Background Color
color#778899
 


LightSteelBlue


Background Color
color#B0C4DE
 


LightYellow


Background Color
color#FFFFE0
 


Lime


Background Color
color#00FF00
 


LimeGreen


Background Color
color#32CD32
 


Linen


Background Color
color#FAF0E6
 


Magenta


Background Color
color#FF00FF
 


Maroon


Background Color
color#800000
 


MediumAquaMarine


Background Color
color#66CDAA;
 


MediumBlue


Background Color
color#0000CD
 


MediumOrchid


Background Color
color#BA55D3
 


MediumPurple


Background Color
color#9370D8
 


MediumSeaGreen


Background Color
color#3CB371
 


MediumSlateBlue


Background Color
color#7B68EE
 


MediumSpringGreen


Background Color
color#00FA9A
 


MediumTurquoise


Background Color
color#48D1CC
 


MediumVioletRed


Background Color
color#C71585
 


MidnightBlue


Background Color
color#191970
 


MintCream


Background Color
color#F5FFFA
 


MistyRose


Background Color
color#FFE4E1
 


Moccasin


Background Color
color#FFE4B5
 


NavajoWhite


Background Color
color#FFDEAD
 


Navy


Background Color
color#000080
 


OldLace


Background Color
color#FDF5E6
 


Olive


Background Color
color#808000
 


OliveDrab


Background Color
color#6B8E23
 


Orange


Background Color
color#FFA500
 


OrangeRed


Background Color
color#FF4500
 


Orchid


Background Color
color#DA70D6
 


PaleGoldenRod


Background Color
color#EEE8AA
 


PaleGreen


Background Color
color#98FB98
 


PaleTurquoise


Background Color
color#AFEEEE
 


PaleVioletRed


Background Color
color#D87093
 


PapayaWhip


Background Color
color#FFEFD5
 


PeachPuff


Background Color
color#FFDAB9
 


Peru


Background Color
color#CD853F
 


Pink


Background Color
color#FFC0CB
 


Plum


Background Color
color#DDA0DD
 


PowderBlue


Background Color
color#B0E0E6
 


Purple


Background Color
color#800080
 


Red


Background Color
color#FF0000
 


RosyBrown


Background Color
color#BC8F8F
 


RoyalBlue


Background Color
color#4169E1
 


SaddleBrown


Background Color
color#8B4513
 


Salmon


Background Color
color#FA8072
 


SandyBrown


Background Color
color#F4A460
 


SeaGreen


Background Color
color#2E8B57
 


SeaShell


Background Color
color#FFF5EE
 


Sienna


Background Color
color#A0522D
 


Silver


Background Color
color#C0C0C0
 


SkyBlue


Background Color
color#87CEEB
 


SlateBlue


Background Color
color#6A5ACD
 


SlateGray


Background Color
color#708090
 


SlateGrey


Background Color
color#708090
 


Snow


Background Color
color#FFFAFA
 


SpringGreen


Background Color
color#00FF7F
 


SteelBlue


Background Color
color#4682B4
 


Tan


Background Color
color#D2B48C
 


Teal


Background Color
color#008080
 


Thistle


Background Color
color#D8BFD8
 


Tomato


Background Color
color#FF6347
 


Turquoise


Background Color
color#40E0D0
 


Wheat


Background Color
color#F5DEB3
 


White


Background Color
color#FFFFFF
 


Yellow


Background Color
color#FFFF00
 


WhiteSmoke


Background Color
color#F5F5F5
 


YellowGreen


Background Color
color#9ACD32
YellowGreen
 


Color Modifiers

System and HTML colors are great for basic look and feel, but you may want to only use these predefined colors as a base while still having the flexibility to achieve the look and feel you desire without sacrificing conformity to these colors. For instance, you may want to use the system highlight color for selected cells in the SRP OLE EditTable, but you may also want it to always be light enough to display black text in front of it. Color modifiers provide the means to achieve this and other effects. The color modifier format is:

...