Home » HTML HTML Colors (Color Codes)By IncludeHelp Last updated : October 13, 2024 HTML Color CodesIn HTML, color codes are used for representing different colors on the webpage. These colors include the colors which we see as an everyday format that a computer can interpret and ...
For example, rgb(255,0,0) displays the red color as it has the highest intensity.Here is an example of adding color using RGB values.<!DOCTYPE html> <html lang="en"> <head> <title>HTML </title> </head> <body> <h2 style="background-color: rgb(255,0,0)"> RGB color </h2> ...
In other words, the models allow us to encode every color, so to define the color you need means to define the relevant color code.The popular color models are: RGB, CMYK, HSL, HSV (or HSB), XYZ, Yxy. Our goal is to give information on color codes for web, so we'll look ...
RGBAis similar to Hex in that it has 24 bits for RGB color, bit there is an additional 8 bit value for transparency. HSLstands for Hue, Saturation, and Lightness. The values are based on a position from the center of a color wheel. The value for Hue is from 0 to 360, representing...
HTML Color Codes ColorHex code (#RRGGBB)Decimal code (R,G,B)HTML/CSS(color name) #000000 rgb(0,0,0) black #000033 rgb(0,0,51) #000066 rgb(0,0,102) #000099 rgb(0,0,153) #0000CC rgb(0,0,204) #0000FF rgb(0,0,255) blue #003300 rgb(0,51,0) #003333 rgb(0,51...
HTML <body><pstyle="color:rgb(255,0,0);">Red paragraph text</p></body> Demo on CodePen When using an RGB value in your website, you can also specify opacity. Instead of rgb() use rgba() – the a is for alpha, the color channel that controls opacity – and after your three ...
In HTML code, there are two ways to describe colors. One is to use color names, such as blue, its color name is blue. Another is RGB color which is represented by the hex value. RGB stands for Red, Green, and Blue. The minimum value of RGB primary color is 0, the maximum is 25...
Shadow color for three-dimensional display elements. ButtonText Text on push buttons. CaptionText Text in caption, size box, and scrollbar arrow box. GrayText Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color. ...
HTML <body><ahref="http://example.com/"style="color:rgba(255,0,0,0.5);">Red Link</a></body> Demo on CodePen Link color using HSL color values HSL, which stands for hue, saturation and lightness, are another set of color values supported by most modern browsers (IE9+). Like RGB...
If you like my color codes, you might like my other publications. The chart below shows the hexadecimal color codes for shades of gray. This page is part of The Hex Hub of The Color Spot at HTML Station. You can use a quick reference table to choose from among the many other color ...