Compare RGB values with Hexadecimal color codes?

devquora
devquora

Posted On: Feb 22, 2018

 

A color can be specified in two ways:
  • A color is represented by 6 characters i.e. hexadecimal color coding. It is a combination of numbers and letters and is preceded by #. e.g.: g {color: #00cjfi}
  • A mixture of red, green and blue represents a color. The value of a color can also be specified.

e.g.: rgb(r,g,b):
In this type the values can be in between the integers 0 and 255. rgb(r%,g%,b%): red, green and blue percentage is shown.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    CSS Interview Questions

    What is CSS?

    Cascading style sheets or CSS is a web designing language simple for HTML elements. The application is commonly known a..

    CSS Interview Questions

    What are the advantages of CSS?

    There are a number of advantages of CSS, It gives lots of flexibility for setting the properties of the element Easy ma..

    CSS Interview Questions

    In how many ways can a CSS be integrated as a web page?

    CSS can be integrated in three ways: Inline: term is used when the CSS code have attribute of HTML elements<p styl..