Subscribe:

Friday

RGB Values and Percentages


If hexadecimal shade principles already have your go rotating, I have excellent news! Now that design linens are the recommended technique of introducing shade in all websites, we no more have to battle with hexadecimal requirements.
If a color’s RGB principles are useful, use those in your design piece in position of the hexadecimal value, like in the following:
<p style="color: rgb(0,0,255);"
If you never have the RGB principles useful, as when operating in some web page structure or style applications other than Illustrator, you can also use the RGB proportions, like that proven in the following example.
<p style="color: rgb(0%,0%,100%);">
Observe that a comma divides each RGB value and the whole set of principles is placed within parentheses. A lowercase rgb comes before those parentheses. In the situation of the past value example, R = 0, G = 0, and B = 255. As was the situation with hexadecimal shorthand, RGB principles and proportions are only used to explain shade in design linens, not the mature HTML shade labels.

0 comments:

Post a Comment