RGB颜色转换十六进制颜色

RGB颜色转换为十六进制颜色:

  
 

十六进制颜色转换为RGB颜色:

  
 


十六进制颜色查询

颜   色英文代码形象描述十六进制RGB
 LightPink浅粉红#FFB6C1255,182,193
 Pink粉红#FFC0CB255,192,203
 Crimson猩红#DC143C220,20,60
 LavenderBlush脸红的淡紫色#FFF0F5255,240,245
 PaleVioletRed苍白的紫罗兰红色#DB7093219,112,147
 HotPink热情的粉红#FF69B4255,105,180
 DeepPink深粉色#FF1493255,20,147
 MediumVioletRed适中的紫罗兰红色#C71585199,21,133
 Orchid兰花的紫色#DA70D6218,112,214
 Thistle#D8BFD8216,191,216
 plum李子#DDA0DD221,160,221
 Violet紫罗兰#EE82EE238,130,238
 Magenta洋红#FF00FF255,0,255
 Fuchsia灯笼海棠(紫红色)#FF00FF255,0,255
 DarkMagenta深洋红色#8B008B139,0,139
 Purple紫色#800080128,0,128
 MediumOrchid适中的兰花紫#BA55D3186,85,211
 DarkVoilet深紫罗兰色#9400D3148,0,211
 DarkOrchid深兰花紫#9932CC153,50,204
 Indigo靛青#4B008275,0,130
 BlueViolet深紫罗兰的蓝色#8A2BE2138,43,226
 MediumPurple适中的紫色#9370DB147,112,219
 MediumSlateBlue适中的板岩暗蓝灰色#7B68EE123,104,238
 SlateBlue板岩暗蓝灰色#6A5ACD106,90,205
 DarkSlateBlue深岩暗蓝灰色#483D8B72,61,139
 Lavender熏衣草花的淡紫色#E6E6FA230,230,250
 GhostWhite幽灵的白色#F8F8FF248,248,255
 Blue纯蓝#0000FF0,0,255
 MediumBlue适中的蓝色#0000CD0,0,205
 MidnightBlue午夜的蓝色#19197025,25,112
 DarkBlue深蓝色#00008B0,0,139
 Navy海军蓝#0000800,0,128
 RoyalBlue皇军蓝#4169E165,105,225
 CornflowerBlue矢车菊的蓝色#6495ED100,149,237
 LightSteelBlue淡钢蓝#B0C4DE176,196,222
 LightSlateGray浅石板灰#778899119,136,153
 SlateGray石板灰#708090112,128,144
 DoderBlue道奇蓝#1E90FF30,144,255
 AliceBlue爱丽丝蓝#F0F8FF240,248,255
 SteelBlue钢蓝#4682B470,130,180
 LightSkyBlue淡蓝色#87CEFA135,206,250
 SkyBlue天蓝色#87CEEB135,206,235
 DeepSkyBlue深天蓝#00BFFF0,191,255
 LightBLue淡蓝#ADD8E6173,216,230
 PowDerBlue火药蓝#B0E0E6176,224,230
 CadetBlue军校蓝#5F9EA095,158,160
 Azure蔚蓝色#F0FFFF240,255,255
 LightCyan淡青色#E1FFFF225,255,255
 PaleTurquoise苍白的绿宝石#AFEEEE175,238,238
 Cyan青色#00FFFF0,255,255
 Aqua水绿色#00FFFF0,255,255
 DarkTurquoise深绿宝石#00CED10,206,209
 DarkSlateGray深石板灰#2F4F4F47,79,79
 DarkCyan深青色#008B8B0,139,139
 Teal水鸭色#0080800,128,128
 MediumTurquoise适中的绿宝石#48D1CC72,209,204
 LightSeaGreen浅海洋绿#20B2AA32,178,170
 Turquoise绿宝石#40E0D064,224,208
 Auqamarin绿玉\碧绿色#7FFFAA127,255,170
 MediumAquamarine适中的碧绿色#00FA9A0,250,154
 MediumSpringGreen适中的春天的绿色#F5FFFA245,255,250
 MintCream薄荷奶油#00FF7F0,255,127
 SpringGreen春天的绿色#3CB37160,179,113
 SeaGreen海洋绿#2E8B5746,139,87
 Honeydew蜂蜜#F0FFF0240,255,240
 LightGreen淡绿色#90EE90144,238,144
 PaleGreen苍白的绿色#98FB98152,251,152
 DarkSeaGreen深海洋绿#8FBC8F143,188,143
 LimeGreen酸橙绿#32CD3250,205,50
 Lime酸橙色#00FF000,255,0
 ForestGreen森林绿#228B2234,139,34
 Green纯绿#0080000,128,0
 DarkGreen深绿色#0064000,100,0
 Chartreuse查特酒绿#7FFF00127,255,0
 LawnGreen草坪绿#7CFC00124,252,0
 GreenYellow绿黄色#ADFF2F173,255,47
 OliveDrab橄榄土褐色#556B2F85,107,47
 Beige米色(浅褐色)#6B8E23107,142,35
 LightGoldenrodYellow浅秋麒麟黄#FAFAD2250,250,210
 Ivory象牙#FFFFF0255,255,240
 LightYellow浅黄色#FFFFE0255,255,224
 Yellow纯黄#FFFF00255,255,0
 Olive橄榄#808000128,128,0
 DarkKhaki深卡其布#BDB76B189,183,107
 LemonChiffon柠檬薄纱#FFFACD255,250,205
 PaleGodenrod灰秋麒麟#EEE8AA238,232,170
 Khaki卡其布#F0E68C240,230,140
 Gold#FFD700255,215,0
 Cornislk玉米色#FFF8DC255,248,220
 GoldEnrod秋麒麟#DAA520218,165,32
 FloralWhite花的白色#FFFAF0255,250,240
 OldLace老饰带#FDF5E6253,245,230
 Wheat小麦色#F5DEB3245,222,179
 Moccasin鹿皮鞋#FFE4B5255,228,181
 Orange橙色#FFA500255,165,0
 PapayaWhip番木瓜#FFEFD5255,239,213
 BlanchedAlmond漂白的杏仁#FFEBCD255,235,205
 NavajoWhiteNavajo白#FFDEAD255,222,173
 AntiqueWhite古代的白色#FAEBD7250,235,215
 Tan晒黑#D2B48C210,180,140
 BrulyWood结实的树#DEB887222,184,135
 Bisque(浓汤)乳脂,番茄等#FFE4C4255,228,196
 DarkOrange深橙色#FF8C00255,140,0
 Linen亚麻布#FAF0E6250,240,230
 Peru秘鲁#CD853F205,133,63
 PeachPuff桃色#FFDAB9255,218,185
 SandyBrown沙棕色#F4A460244,164,96
 Chocolate巧克力#D2691E210,105,30
 SaddleBrown马鞍棕色#8B4513139,69,19
 SeaShell海贝壳#FFF5EE255,245,238
 Sienna黄土赭色#A0522D160,82,45
 LightSalmon浅鲜肉(鲑鱼)色#FFA07A255,160,122
 Coral珊瑚#FF7F50255,127,80
 OrangeRed橙红色#FF4500255,69,0
 DarkSalmon深鲜肉(鲑鱼)色#E9967A233,150,122
 Tomato番茄#FF6347255,99,71
 MistyRose薄雾玫瑰#FFE4E1255,228,225
 Salmon鲜肉(鲑鱼)色#FA8072250,128,114
 Snow#FFFAFA255,250,250
 LightCoral淡珊瑚色#F08080240,128,128
 RosyBrown玫瑰棕色#BC8F8F188,143,143
 IndianRed印度红#CD5C5C205,92,92
 Red纯红#FF0000255,0,0
 Brown棕色#A52A2A165,42,42
 FireBrick耐火砖#B22222178,34,34
 DarkRed深红色#8B0000139,0,0
 Maroon栗色#800000128,0,0
 White纯白#FFFFFF255,255,255
 WhiteSmoke白烟#F5F5F5245,245,245
 GainsboroGainsboro#DCDCDC220,220,220
 LightGrey浅灰色#D3D3D3211,211,211
 Silver银白色#C0C0C0192,192,192
 DarkGray深灰色#A9A9A9169,169,169
 Gray灰色#808080128,128,128
 DimGray暗淡的灰色#696969105,105,105
 Black纯黑#0000000,0,0



在程序中指定颜色一般试用RGB函数,分别输入R、G、B值。RGB函数返回颜色值(Long)。如果在程序中直接指定颜色对应的值,可以稍微加快程序的运行速度。特别在使单双行显示不同颜色等频繁调用RGB函数时,效果要好一些。     
    
  下表是一些常用颜色的值     
    
  Colour     Red     Green     Blue     值     
  黑色  Black            
  白色  White   255   255   255   16777215     
  灰色  Gray   192   192   192   12632256     
  深灰色   Dark   Grey   128   128   128   8421504     
  红色   Red   255       255     
  深红色   Dark   Red   128       128     
  绿色   Green     255     65280     
  深绿色   Dark   Green     128     32768     
  蓝色   Blue       255   16711680     
  深蓝色   Dark   Blue       128   8388608     
  紫红色   Magenta   255     255   16711935     
  深紫红   Dark   Magenta   128     128   8388736     
  紫色   Cyan     255   255   16776960     
  深紫   Dark   Cyan     128   128   8421376     
  黄色   Yellow   255   255     65535     
  棕色   Brown   128   128     32896     
  特殊颜色     
  Button   Face               79741120     
  Text               33554432     
  Background               1090519039     
  App.   Workspace               276856960     
    
  RGB函数计算公式:   颜色值   =   (65536     Blue)     (256     Green)     (Red) 

==============================================

rgb(r,g,b)=r+g*256+b*256*256

=================================

Dim color As Double
Dim r, g, b As Integer
color = RGB(0, 0, 0)
r = color Mod 256
g = (color \ 256) Mod 256
b = (color \ 256 \ 256) Mod 256
Print r
Print g
Print b


下表列出了 Internet Explorer 4.0支持的命名颜色:包括名称、十六进制表示、对应的RGB。

aliceblue
(#F0F8FF)
RGB(240,248,255)

antiquewhite
(#FAEBD7)
RGB(250,235,215)
aqua
(#00FFFF)
RGB(0,255,255)
aquamarine
(#7FFFD4)
RGB(127,255,212)
azure
(#F0FFFF)
RGB(240,255,255)
beige
(#F5F5DC)
RGB(245,245,220)
bisque
(#FFE4C4)
RGB(255,228,196)
black
(#000000)
RGB(0,0,0)
blanchedalmond
(#FFEBCD)
RGB(255,235,205)
blue
(#0000FF)
RGB(0,0,255)
blueviolet
(#8A2BE2)
RGB(138,43,226)
brown
(#A52A2A)
RGB(165,42,42)
burlywood
(#DEB887)
RGB(222,184,135)
cadetblue
(#5F9EA0)
RGB(95,158,160)
chartreuse
(#7FFF00)
RGB(127,255,0)
chocolate
(#D2691E)
RGB(210,105,30)
coral
(#FF7F50)
RGB(255,127,80)
cornflowerblue
(#6495ED)
RGB(100,149,237)
cornsilk
(#FFF8DC)
RGB(255,248,220)
crimson
(#DC143C)
RGB(220,20,60)
cyan
(#00FFFF)
RGB(0,255,255)
darkblue
(#00008B)
RGB(0,0,139)
darkcyan
(#008B8B)
RGB(0,139,139)
darkgoldenrod
(#B8860B)
RGB(184,134,11)
darkgray
(#A9A9A9)
RGB(169,169,169)
darkgreen
(#006400)
RGB(0,100,0)
darkkhaki
(#BDB76B)
RGB(189,183,107)
darkmagenta
(#8B008B)
RGB(139,0,139)
darkolivegreen
(#556B2F)
RGB(85,107,47)
darkorange
(#FF8C00)
RGB(255,140,0)
darkorchid
(#9932CC)
RGB(153,50,204)
darkred
(#8B0000)
RGB(139,0,0)
darksalmon
(#E9967A)
darkseagreen
(#8FBC8B)
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)













评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值