HTML Basics Tutorial: Learning to master HTML color values

Source: Internet
Author: User
HTML Basics | Basics Tutorial

The color is mixed with red, green and blue.

Color values

The color is defined by a hexadecimal symbol, which consists of red, green, and blue values (RGB). The minimum value for each color is 0 (16: #00). The maximum value is 255 (16: #FF).

Turn off the red

If red is completely turned off, the combination of green and blue has 65536 species (256 x 256).

Click here to view the different combinations of green and blue.

Turn on the red

If you set the red to the maximum, there are still 65536 different combinations of green and blue.

Click here to view the different combinations of green and blue.

16 million kinds of different colors

by calculating 256 x 256 x 256, the values of red, green, and blue from 0 to 255 can combine 16 million different colors altogether.

Most modern displays have the ability to display at least 16384 different colors.

You can look at the following color table and you will see the exact color of the red value from 0 to 255 when the green and blue values are zero.

Red Light HEX RGB
#000000 RGB (0,0,0)
#080000 RGB (8,0,0)
#100000 RGB (16,0,0)
#180000 RGB (24,0,0)
#200000 RGB (32,0,0)
#280000 RGB (40,0,0)
#300000 RGB (48,0,0)
#380000 RGB (56,0,0)
#400000 RGB (64,0,0)
#480000 RGB (72,0,0)
#500000 RGB (80,0,0)
#580000 RGB (88,0,0)
#600000 RGB (96,0,0)
#680000 RGB (104,0,0)
#700000 RGB (112,0,0)
#780000 RGB (120,0,0)
#800000 RGB (128,0,0)
#880000 RGB (136,0,0)
#900000 RGB (144,0,0)
#980000 RGB (152,0,0)
#A00000 RGB (160,0,0)
#A80000 RGB (168,0,0)
#B00000 RGB (176,0,0)
#B80000 RGB (184,0,0)
#C00000 RGB (192,0,0)
#C80000 RGB (200,0,0)
#D00000 RGB (208,0,0)
#D80000 RGB (216,0,0)
#E00000 RGB (224,0,0)
#E80000 RGB (232,0,0)
#F00000 RGB (240,0,0)
#F80000 RGB (248,0,0)
#FF0000 RGB (255,0,0)

Gray Scale

When all colors have equal values, gray can be displayed. To make it easier for you to choose the right gray, we made a grayscale table 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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.