CSS Color representation

Source: Internet
Author: User
Tags color representation

Color Representation method

1. Color name:

color:gray;

2. RGB Color

(1) percentage

Color:rgb (100%,100%,100%);

(2) Digital Color
The number range is 0~255
Color:rgb (0,125,246);
Note: percentages can have decimals, but numbers cannot have decimals

(3) Hex Color
Range 00~FF
Color: #cccccc;
The hexadecimal representation of common colors is as Follows:
Red #ff0000 orange #ff6600 yellow #ffff00 green #00ff00
Blue #0000ff Indigo #3300ff Violet #cc00ff Grey #808080
Dark grey #333333 brownish brown #ffcc99 golden #ffcc00 Purple #ff00ff
(4) Short Hex Color
Range 0~f
Color: #fff;
The browser replicates each one in the same way as the (3) method.

CSS Color representation

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.