当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS 颜色值
Colors are displayed combining RED, GREEN, and BLUE light sources.
颜色是由红、绿、蓝三色光源混合而成。
CSS colors are defined using a hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one light source is 0 (hex #00). The highest value is 255 (hex #FF).
颜色为了表达红色、绿色和蓝色的混合值被定义成一套16位进制的记号法用(RGB)一种颜色的最低值为0(#00),最高为255(#FF)
Most modern monitors are capable of displaying at least 16384 different colors.
现在绝大多数显示器可显示出起码16384种不同的颜色
If you look at the color table below, you will see the result of varying the red light from 0 to 255, while keeping the green and blue light at zero.
如果你注意下面那个颜色表格的话,你就会发现当绿色和蓝色都保持0的时候红色的值从0变化到255的话依然会有很多不同的结果。
To see a full list of 16384 different colors based on red light varying from 0 to 255, click on one of the hexadecimal or rgb values below.
想要看到16384种基于红色值从0到255不同颜色的列表的话就点下面16进制或者RGB值。
Gray colors are displayed using an equal amount of power to all of the light sources. To make it easier for you to select the right gray color we have compiled a table of gray shades for you:
灰色通过让三原色使用相同的数值来显示。为了让你更容易的选择合适的灰色我们编辑了灰度梯度表:
RGB(0,0,0) | #000000 | |
RGB(8,8,8) | #080808 | |
RGB(16,16,16) | #101010 | |
RGB(24,24,24) | #181818 | |
RGB(32,32,32) | #202020 | |
RGB(40,40,40) | #282828 | |
RGB(48,48,48) | #303030 | |
RGB(56,56,56) | #383838 | |
RGB(64,64,64) | #404040 | |
RGB(72,72,72) | #484848 | |
RGB(80,80,80) | #505050 | |
RGB(88,88,88) | #585858 | |
RGB(96,96,96) | #606060 | |
RGB(104,104,104) | #686868 | |
RGB(112,112,112) | #707070 | |
RGB(120,120,120) | #787878 | |
RGB(128,128,128) | #808080 | |
RGB(136,136,136) | #888888 | |
RGB(144,144,144) | #909090 | |
RGB(152,152,152) | #989898 | |
RGB(160,160,160) | #A0A0A0 | |
RGB(168,168,168) | #A8A8A8 | |
RGB(176,176,176) | #B0B0B0 | |
RGB(184,184,184) | #B8B8B8 | |
RGB(192,192,192) | #C0C0C0 | |
RGB(200,200,200) | #C8C8C8 | |
RGB(208,208,208) | #D0D0D0 | |
RGB(216,216,216) | #D8D8D8 | |
RGB(224,224,224) | #E0E0E0 | |
RGB(232,232,232) | #E8E8E8 | |
RGB(240,240,240) | #F0F0F0 | |
RGB(248,248,248) | #F8F8F8 | |
RGB(255,255,255) | #FFFFFF |