当前位置:   article > 正文

html十六进制和RGB颜色表_html浅白色

html浅白色
  • 自己做一个十六进制或者rgb的表,用在js里选颜色, 下表只是用于预览各种着色。 网上搜出的好多基本都没法用。
中文名英文名代码RGB预览
栗色maroon#800000128,0,0
暗红色darkred#8B0000139,0,0
褐玫瑰红brown#A52A2A165,42,42
火砖色firebrick#B22222178,34,34
暗深红色crimson#DC143C220,20,60
红色red#FF0000255,0,0
间紫罗兰色mediumvioletred#C71585199,21,133
苍紫罗兰色palevioletred#D87093216,112,147
深粉红色deeppink#FF1493255,20,147
紫红色fuchsia(magenta)#FF00FF255,0,255
红紫色hotpink#FF69B4255,105,180
粉红色pink#FFC0CB255,192,203
亮粉红色lightpink#FFB6C1255,182,193
浅玫瑰色mistyrose#FFE4E1255,228,225
淡紫红lavenderblush#FFF0F5255,240,245
靛青色indigo#4B008275,0,130
紫色purple#800080128,0,128
暗洋红darkmagenta#8B008B139,0,139
暗紫色darkorchid#9932CC153,50,204
紫罗兰色blueviolet#8A2BE2138,43,226
暗紫罗兰色darkviolet#9400D3148,0,211
石蓝色slateblue#6A5ACD106,90,205
间紫色mediumpurple#9370DB147,112,219
间暗蓝色mediumslateblue#7B68EE123,104,238
间紫色mediumorchid#BA55D3186,85,211
紫罗兰色violet#EE82EE238,130,238
洋李色plum#DDA0DD221,160,221
蓟色thistle#D8BFD8216,191,216
淡紫色lavender#E6E6FA230,230,250
重褐色saddlebrown#8B4513139,69,19
赭色sienna#A0522D160,82,45
巧可力色chocolate#D2691E210,105,30
印第安红indianred#CD5C5C205,92,92
褐玫瑰红rosybrown#BC8F8F188,143,143
亮珊瑚色lightcoral#F08080240,128,128
鲜肉色salmon#FA8072250,128,114
亮肉色lightsalmon#FFA07A255,160,122
红橙色orangered#FF4500255,69,0
西红柿色tomato#FF6347255,99,71
珊瑚色coral#FF7F50255,127,80
暗桔黄色darkorange#FF8C00255,140,0
沙褐色sandybrown#F4A460244,164,96
秘鲁色peru#CD853F205,133,63
茶色tan#D2B48C210,180,140
实木色burlywood#DEB887222,184,135
浅黄色wheat#F5DEB3245,222,179
鹿皮色moccasin#FFE4B5255,228,181
纳瓦白navajowhite#FFDEAD255,222,173
桃色peachpuff#FFDAB9255,218,185
桔黄色bisque#FFE4C4255,228,196
古董白antiquewhite#FAEBD7250,235,215
番木色papayawhip#FFEFD5255,239,213
米绸色cornsilk#FFF8DC255,248,220
老花色oldlace#FDF5E6253,245,230
亚麻色linen#FAF0E6250,240,230
海贝色seashell#FFF5EE255,245,238
雪白色snow#FFFAFA255,250,250
花白色floralwhite#FFFAF0255,250,240
象牙色ivory#FFFFF0255,255,240
暗金黄色darkgoldenrod#B8860B184,134,11
金麒麟色goldenrod#DAA520218,165,32
金色gold#FFD700255,215,0
黄色yellow#FFFF00255,255,0
暗黄褐色darkkhaki#BDB76B189,183,107
黄褐色khaki#F0E68C240,230,140
苍麒麟色palegoldenrod#EEE8AA238,232,170
米色beige#F5F5DC245,245,220
柠檬绸色lemonchiffon#FFFACD255,250,205
亮金黄色lightgoldenrodyellow#FAFAD2250,250,210
亮黄色lightyellow#FFFFE0255,255,224
墨绿色darkslategray#2F4F4F47,79,79
暗橄榄绿darkolivegreen#556B2F85,107,47
橄榄色olive#808000128,128,0
暗绿色darkgreen#0064000,100,0
森林绿forestgreen#228B2234,139,34
海绿色seagreen#2E8B5746,139,87
水鸭色green(teal)#0080800,128,128
间宝石绿madiumaquamarine#66CDAA102,205,170
黄绿色yellowgreen#9ACD32154,205,50
橙绿色limegreen#32CD3250,205,50
酸橙色lime#00FF000,255,0
黄绿色chartreuse#7FFF00127,255,0
草绿色lawngreen#7CFC00124,252,0
黄绿色greenyellow#ADFF2F173,255,47
间春绿色mediumspringgreen#00FA9A0,250,154
春绿色springgreen#00FF7F0,255,127
亮绿色lightgreen#90EE90144,238,144
苍绿色palegreen#98F898152,248,152
碧绿色aquamarine#7FFFD4127,255,212
蜜色honeydew#F0FFF0240,255,240
薄荷色mintcream#F5FFFA245,255,250
中灰兰色midnightblue#19197025,25,112
海军色navy#0000800,0,128
暗蓝色darkblue#00008B0,0,139
暗灰蓝色darkslateblue#483D8B72,61,139
间兰色mediumblue#0000CD0,0,205
皇家蓝royalblue#4169E165,105,225
闪兰色dodgerblue#1E90FF30,144,255
菊兰色cornflowerblue#6495ED100,149,237
深天蓝色deepskyblue#00BFFF0,191,255
亮天蓝色lightskyblue#87CEFA135,206,250
亮钢兰色lightsteelblue#B0C4DE176,196,222
亮蓝色lightblue#ADD8E6173,216,230
钢兰色steelblue#4682B470,130,180
暗青色darkcyan#008B8B0,139,139
军兰色cadetblue#5F9EA095,158,160
暗宝石绿darkturquoise#00CED10,206,209
亮绿色mediumturquoise#48D1CC72,209,204
青绿色turquoise#40E0D064,224,208
天蓝色skyblue#87CECB135,206,203
粉蓝色powderblue#B0E0E6176,224,230
苍宝石绿paleturquoise#AFEEEE175,238,238
亮青色lightcyan#E0FFFF224,255,255
天蓝色azure#F0FFFF240,255,255
艾利斯兰aliceblue#F0F8FF240,248,255
青色aqua(cyan)#00FFFF0,255,255
黑色black#0000000,0,0
暗灰色dimgray#696969105,105,105
灰色gray#808000128,128,0
灰石色slategray#708090112,128,144
亮蓝灰lightslategray#778899119,136,153
暗灰色darkgray#A9A9A9169,169,169
银色silver#C0C0C0192,192,192
浅灰lightgray#D3D3D3211,211,211
淡灰色gainsboro#DCDCDC220,220,220
烟白色whitesmoke#F5F5F5245,245,245
幽灵白ghostwhite#F8F8FF248,248,255
白色white#FFFFFF255,255,255
  • 写python段程序,自动生成 js enum ,在需要的地方引入该js 即可
def to_js_enum(raws, fout):

    def __alpha(raws, a = 1):
        cols = []
        names = set()
        for num, raw in enumerate(raws):
            if num == 0:
                continue
            name = raw[1].split('(', 1)[0]
            rgba = raw[-1].split(',') 
            rgba.append(a)
            rgba = ','.join([str(i) for i in rgba])
            if name not in names: 
                cols.append('\t%s: "rgba(%s)"' % (name, rgba))
                names.add(name)
            else: 
                sys.stderr.write('skip:%s' % raw)
                
        random.shuffle(cols)
        return cols

    fout.write('rgbColors = {\n')
    fout.write(',\n'.join( __alpha(raws)))
    fout.write('\n};\n')

    fout.write('rgba2Colors = {\n')
    fout.write(',\n'.join( __alpha(raws, 0.2)))
    fout.write('\n};\n')

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • ref:
  • RGB颜色表 https://tool.oschina.net/commons?type=3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/144545
推荐阅读
相关标签
  

闽ICP备14008679号