
You can also enter your color into the color scheme generator to generate color schemes based on your color.

And here's a named color chart which outlines all named colors in CSS. This can make it easier to remember than a bunch of numbers and functions. Color NameĬSS also assigns a name to certain colors. Value corresponds to the brightness of the color. Also, HSV uses value instead of lightness. In fact, it can be dramatically different, depending on the color. However, the saturation may or may not be the same for a given color. HSV is similar to HSL in that it allows you to specify the hue and saturation levels. HSV HSV uses hue, saturation, and value to represent the color. In CSS, HSL is defined using the hsl() function. The saturation and lightness are expressed as percentage values, to represent the amount of saturation in the color and the lightness. A hexadecimal value can be taken from any graphics software like Adobe Photoshop, Jasc Paintshop Pro, or even using Advanced Paint Brush. The first two digits(RR) represent a red value, the next two are a green value(GG), and the last are the blue value(BB). The hue is given as a value between 0 and 360 to represent its position on the color wheel. A hexadecimal is a 6 digit representation of a color. HSL represents the hue, saturation, and lightness of a color. The values can also be represented as a percentage. Therefore, rgb(255,0,0) represents red, rgb(0,0,255) represents blue, and so on. Each component can be a number between 0 and 255. In CSS, we pass the color value to the rgb() function as a comma separated list of the red, green, and blue components. The RGB model represents a color based on its proportions of red, green, and blue. Hex can also be provided as a three digit number (but only some colors can be represented this way).Īlso, CSS Color Module Level 4 currently proposes an eight digit hex value (and its four digit shorthand) for representing alpha transparency. The color value is provided as a six-digit hexadecimal number, preceded by a hash symbol ( #). This method uses hexadecimal notation to define the color in their RGB components. See the W3C color names for a full list of color names or look for (W3C) in the table below.The above conversion results displays the same color using different color models. For example, in HTML tags and CSS that use color codes, you could use "red" instead of "#FF0000". With these colors, you can also use the color name.

All questions relating to CSS and HTML colors.īelow are some of the common color names and codes.How to change the font type, size, and color on a web page.These color codes can change the color of the background, text, and tables on a web page. For example, in the color red, the color code is #FF0000, which is '255' red, '0' green, and '0' blue. HTML color codes are hexadecimal triplets representing the colors red, green, and blue (#RRGGBB).
