Color

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

RGB Color Name White WhiteSmoke Gainsboro LightGrey Silver DarkGray Gray DimGray Black RosyBrown Lightcoral IndianRed

Brown FireBrick Red DarkRed Maroon LightPink Crimson PalevioletRed LavenderBlush HotPink DeepPink MediumvioletRed Orchid Thistle Violet Fuchsia Magenta DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple SlateBlue DarkSlateBlue MediumSlateBlue GhostWhite Lavender MidnightBlue Blue MediumBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGray SlateGray Red Green Blue 255 255 255 245 245 245 220 220 220 211 211 211 192 192 192 169 169 169 128 128 128 105 105 105 0 0 0 188 143 143 240 128 128 205 92 92 165 42 42 178 34 34 255 0 0 139 0 0 128 0 0 255 182 193 220 20 60 219 112 147 255 240 245 255 105 180 255 20 147 199 21 133 218 112 214 216 191 216 238 130 238 255 0 255 255 0 255 139 0 139 128 0 128 186 85 211 148 0 211 153 50 204 75 0 130 138 43 226 147 112 219 106 90 205 72 61 139 123 104 238 248 248 255 230 230 250 25 25 112 0 0 255 0 0 205 0 0 139 0 0 128 65 105 225 100 149 237 176 196 222 119 136 153 112 128 144 Hue 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0.033 0.055 0.056 0.083 0.09 0.105 0.16 0.167 0.167 0.167 0.167 0.167 0.167 0.2 0.216 0.222 0.237 0.247 0.279 0.31 0.31 0.31 0.333 0.333 0.333 0.333 0.333 0.333 0.333 0.375 0.393 0.406 0.417 0.417

HSB Sat 0 0 0 0 0 0 0 0 0 0.239 0.467 0.551 0.745 0.809 1 1 1 0.286 0.909 0.489 0.059 0.588 0.922 0.894 0.486 0.116 0.454 1 1 1 1 0.597 1 0.755 1 0.81 0.489 0.561 0.561 0.563 0.027 0.08 0.777 1 1 1 1 0.711 0.578 0.207 0.222 0.222 Bright 1 0.961 0.863 0.827 0.753 0.663 0.502 0.412 0 0.737 0.941 0.804 0.647 0.698 1 0.545 0.502 1 0.863 0.859 1 1 1 0.78 0.855 0.847 0.933 1 1 0.545 0.502 0.827 0.827 0.8 0.51 0.886 0.859 0.804 0.545 0.933 1 0.98 0.439 1 0.804 0.545 0.502 0.882 0.929 0.871 0.6 0.565 Solid Example Forecolor Example, Forecolor Example, Black background White background White White WhiteSmoke WhiteSmoke Gainsboro Gainsboro LightGrey LightGrey Silver Silver DarkGray DarkGray Gray Gray DimGray DimGray Black Black RosyBrown RosyBrown Lightcoral Lightcoral IndianRed IndianRed Brown Brown FireBrick FireBrick Red Red DarkRed DarkRed Maroon Maroon LightPink LightPink Crimson Crimson PalevioletRed PalevioletRed LavenderBlush LavenderBlush HotPink HotPink DeepPink DeepPink MediumvioletRed MediumvioletRed Orchid Orchid Thistle Thistle Violet Violet Fuchsia Fuchsia Magenta Magenta DarkMagenta DarkMagenta Purple Purple MediumOrchid MediumOrchid DarkViolet DarkViolet DarkOrchid DarkOrchid Indigo Indigo BlueViolet BlueViolet MediumPurple MediumPurple SlateBlue SlateBlue DarkSlateBlue DarkSlateBlue MediumSlateBlue MediumSlateBlue GhostWhite GhostWhite Lavender Lavender MidnightBlue MidnightBlue Blue Blue MediumBlue MediumBlue DarkBlue DarkBlue Navy Navy RoyalBlue RoyalBlue CornflowerBlue CornflowerBlue LightSteelBlue LightSteelBlue LightSlateGray LightSlateGray SlateGray SlateGray

Backcolor Example, White text White WhiteSmoke Gainsboro LightGrey Silver DarkGray Gray DimGray Black RosyBrown Lightcoral IndianRed Brown FireBrick Red DarkRed Maroon LightPink Crimson PalevioletRed LavenderBlush HotPink DeepPink MediumvioletRed Orchid Thistle Violet Fuchsia Magenta DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple SlateBlue DarkSlateBlue MediumSlateBlue GhostWhite Lavender MidnightBlue Blue MediumBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGray SlateGray

Backcolor Example, Black text White WhiteSmoke Gainsboro LightGrey Silver DarkGray Gray DimGray Black RosyBrown Lightcoral IndianRed Brown FireBrick Red DarkRed Maroon LightPink Crimson PalevioletRed LavenderBlush HotPink DeepPink MediumvioletRed Orchid Thistle Violet Fuchsia Magenta DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple SlateBlue DarkSlateBlue MediumSlateBlue GhostWhite Lavender MidnightBlue Blue MediumBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGray SlateGray

RGB Color Name Red Green Blue DodgerBlue 30 144 255 AliceBlue 240 248 255 SteelBlue 70 130 180 LightSkyBlue 135 206 250 SkyBlue 135 206 235 DeepSkyBlue 0 191 255 LightBlue 173 216 230 PowderBlue 176 224 230 CadetBlue 95 158 160 DarkTurquoise 0 206 209 Azure 240 255 255 LightCyan 224 255 255 PaleTurquoise 175 238 238 DarkSlateGray 47 79 79 Aqua 0 255 255 DarkCyan 0 139 139 Teal 0 128 128 MediumTurquoise 72 209 204 LightSeaGreen 32 178 170 Turquoise 64 224 208 Aquamarine 127 205 170 MediumAquamarine 102 205 170 MediumSpringGreen 0 250 154 MintCream 245 255 250 SpringGreen 0 255 127 MediumSeaGreen 60 179 113 SeaGreen 46 139 87 honeydew 240 255 240 DarkSeaGreen 143 188 143 PaleGreen 152 251 152 LightGreen 144 238 144 ForestGreen 34 139 34 LimeGreen 50 205 50 Lime 0 255 0 Green 0 128 0 DarkGreen 0 100 0 LawnGreen 124 252 0 Chartreuse 127 255 0 GreenYellow 173 255 47 DarkOliveGreen 85 107 47 YellowGreen 154 205 50 OliveDrab 107 142 35 Ivory 255 255 240 Beige 245 245 220 LightYellow 255 255 224 LightGoldenrodYellow250 250 210 Yellow 255 255 0 Olive 128 128 0 DarkKhaki 189 183 107 PaleGoldenrod 238 232 170 LemonChiffon 255 250 205 Khaki 240 230 140 Hue 0.418 0.422 0.424 0.436 0.452 0.458 0.459 0.481 0.495 0.498 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.506 0.509 0.517 0.556 0.557 0.564 0.583 0.584 0.592 0.593 0.667 0.667 0.667 0.667 0.667 0.667 0.667 0.667 0.667 0.749 0.75 0.768 0.772 0.778 0.779 0.833 0.833 0.833 0.833 0.833 0.833 0.846 0.848 0.85 0.85

HSB Sat Bright 0.882 1 0.059 1 0.611 0.706 0.46 0.98 0.426 0.922 1 1 0.248 0.902 0.235 0.902 0.406 0.627 1 0.82 0.059 1 0.122 1 0.265 0.933 0.405 0.31 1 1 1 0.545 1 0.502 0.656 0.82 0.82 0.698 0.714 0.878 0.502 1 0.502 0.804 1 0.98 0.039 1 1 1 0.665 0.702 0.669 0.545 0.059 1 0.239 0.737 0.394 0.984 0.395 0.933 0.755 0.545 0.756 0.804 1 1 1 0.502 1 0.392 1 0.988 1 1 0.816 1 0.561 0.42 0.756 0.804 0.754 0.557 0.059 1 0.102 0.961 0.122 1 0.16 0.98 1 1 1 0.502 0.434 0.741 0.286 0.933 0.196 1 0.417 0.941 Solid Example

Backcolor Backcolor Forecolor Example, Forecolor Example, Example, White Example, Black Black background White background text text DodgerBlue DodgerBlue DodgerBlue DodgerBlue AliceBlue AliceBlue AliceBlue AliceBlue SteelBlue SteelBlue SteelBlue SteelBlue LightSkyBlue LightSkyBlue LightSkyBlue LightSkyBlue SkyBlue SkyBlue SkyBlue SkyBlue DeepSkyBlue DeepSkyBlue DeepSkyBlue DeepSkyBlue LightBlue LightBlue LightBlue LightBlue PowderBlue PowderBlue PowderBlue PowderBlue CadetBlue CadetBlue CadetBlue CadetBlue DarkTurquoise DarkTurquoise DarkTurquoise DarkTurquoise Azure Azure Azure Azure LightCyan LightCyan LightCyan LightCyan PaleTurquoise PaleTurquoise PaleTurquoise PaleTurquoise DarkSlateGray DarkSlateGray DarkSlateGray DarkSlateGray Aqua Aqua Aqua Aqua DarkCyan DarkCyan DarkCyan DarkCyan Teal Teal Teal Teal MediumTurquoise MediumTurquoise MediumTurquoise MediumTurquoise LightSeaGreen LightSeaGreen LightSeaGreen LightSeaGreen Turquoise Turquoise Turquoise Turquoise Aquamarine Aquamarine Aquamarine Aquamarine MediumAquamarine MediumAquamarine MediumAquamarine MediumAquamarine MediumSpringGreen MediumSpringGreen MediumSpringGreen MediumSpringGreen MintCream MintCream MintCream MintCream SpringGreen SpringGreen SpringGreen SpringGreen MediumSeaGreen MediumSeaGreen MediumSeaGreen MediumSeaGreen SeaGreen SeaGreen SeaGreen SeaGreen honeydew honeydew honeydew honeydew DarkSeaGreen DarkSeaGreen DarkSeaGreen DarkSeaGreen PaleGreen PaleGreen PaleGreen PaleGreen LightGreen LightGreen LightGreen LightGreen ForestGreen ForestGreen ForestGreen ForestGreen LimeGreen LimeGreen LimeGreen LimeGreen Lime Lime Lime Lime Green Green Green Green DarkGreen DarkGreen DarkGreen DarkGreen LawnGreen LawnGreen LawnGreen LawnGreen Chartreuse Chartreuse Chartreuse Chartreuse GreenYellow GreenYellow GreenYellow GreenYellow DarkOliveGreen DarkOliveGreen DarkOliveGreen DarkOliveGreen YellowGreen YellowGreen YellowGreen YellowGreen OliveDrab OliveDrab OliveDrab OliveDrab Ivory Ivory Ivory Ivory Beige Beige Beige Beige LightYellow LightYellow LightYellow LightYellow LightGoldenrodYellowLightGoldenrodYellowLightGoldenrodYellowLightGoldenrodYellow Yellow Yellow Yellow Yellow Olive Olive Olive Olive DarkKhaki DarkKhaki DarkKhaki DarkKhaki PaleGoldenrod PaleGoldenrod PaleGoldenrod PaleGoldenrod LemonChiffon LemonChiffon LemonChiffon LemonChiffon Khaki Khaki Khaki Khaki

RGB Color Name Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Orange Moccasin PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Burlywood DarkOrange Bisque Linen PeachPuff SandyBrown Seashell Chocolate SaddleBrown Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon Red Green Blue 255 248 220 218 165 32 184 134 11 255 250 240 253 245 230 245 222 179 255 165 0 255 228 181 255 239 213 255 235 205 255 222 173 250 235 215 222 184 135 255 140 0 255 228 196 250 240 230 255 218 185 244 164 96 255 245 238 210 105 30 139 69 19 160 82 45 255 160 122 255 127 80 255 69 0 233 150 122 255 99 71 255 228 225 250 128 114 Hue 0.867 0.881 0.882 0.889 0.891 0.891 0.892 0.894 0.897 0.9 0.9 0.905 0.906 0.908 0.91 0.917 0.921 0.923 0.931 0.931 0.931 0.946 0.952 0.955 0.955 0.958 0.975 0.983 0.983

HSB Sat Bright 0.137 1 0.853 0.855 0.94 0.722 0.059 1 0.091 0.992 0.269 0.961 1 1 0.29 1 0.165 1 0.196 1 0.322 1 0.14 0.98 0.392 0.871 1 1 0.231 1 0.08 0.98 0.275 1 0.607 0.957 0.067 1 0.857 0.824 0.863 0.545 0.719 0.627 0.522 1 0.686 1 1 1 0.476 0.914 0.722 1 0.118 1 0.544 0.98 Solid Example Forecolor Example, Forecolor Example, Black background White background Cornsilk Cornsilk Goldenrod Goldenrod DarkGoldenrod DarkGoldenrod FloralWhite FloralWhite OldLace OldLace Wheat Wheat Orange Orange Moccasin Moccasin PapayaWhip PapayaWhip BlanchedAlmond BlanchedAlmond NavajoWhite NavajoWhite AntiqueWhite AntiqueWhite Burlywood Burlywood DarkOrange DarkOrange Bisque Bisque Linen Linen PeachPuff PeachPuff SandyBrown SandyBrown Seashell Seashell Chocolate Chocolate SaddleBrown SaddleBrown Sienna Sienna LightSalmon LightSalmon Coral Coral OrangeRed OrangeRed DarkSalmon DarkSalmon Tomato Tomato MistyRose MistyRose Salmon Salmon

Backcolor Example, White text Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Orange Moccasin PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Burlywood DarkOrange Bisque Linen PeachPuff SandyBrown Seashell Chocolate SaddleBrown Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon

Backcolor Example, Black text Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Orange Moccasin PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Burlywood DarkOrange Bisque Linen PeachPuff SandyBrown Seashell Chocolate SaddleBrown Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon

Sub HTMLColorize() Dim rgbColor As Variant Dim iR As Integer Dim iG As Integer Dim iB As Integer Dim c As Range

ActiveSheet.Range("H3").Select For x = 0 To 132 iR = ActiveCell.Offset(x, -6) iG = ActiveCell.Offset(x, -5) iB = ActiveCell.Offset(x, -4) ' Set solid cell rgbColor = RGB(iR, iG, iB) ActiveCell.Offset(x, 0).Interior.Color = rgbColor

' Forecolor Example, Black background Set c = ActiveCell.Offset(x, 1) With c .Interior.Color = ColorConstants.vbBlack .Font.Color = rgbColor End With ' Forecolor Example, White background Set c = ActiveCell.Offset(x, 2) With c .Interior.Color = ColorConstants.vbWhite .Font.Color = rgbColor End With ' Backcolor Example, White text Set c = ActiveCell.Offset(x, 3) With c .Interior.Color = rgbColor .Font.Color = ColorConstants.vbWhite End With ' Backcolor Example, Black text Set c = ActiveCell.Offset(x, 4) With c .Interior.Color = rgbColor .Font.Color = ColorConstants.vbBlack End With Next x End Sub

You might also like