The most common way of coloring HTML text is by using hexadecimal color codes (Hex code for short). Simply add a style attribute to the text element you want to color – a paragraph in the example below – and use the color property with your Hex code. ...
There are millions of different colors to choose from when creating color schemes for websites. The easiest way to choose your colors is to use this color picker.More Text CodesHere's a list of the various text/font properties you can use on your website....
RGBA is similar to Hex in that it has 24 bits for RGB color, bit there is an additional 8 bit value for transparency. HSL stands 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, represen...
Get your Html Color codes with our color picker, HEX code, RGB, RGBA, HSL and HSLA values, including HSV, HWB and CMYK. Go pick!Choose your colors, Learn and Create! hex Color Picker Ran out of imagination? Explore our color picker and choose the perfect color for your project. ...
<body><pstyle="color:rgba(255,0,0,0.5);">Red paragraph text</p></body> 演示的CodePen 文字颜色使用HSL颜色值 添加颜色的第四种方法是使用HSL值。与上面描述的RGB语法类似,HSL使用hsl()前缀,三个值表示色相、饱和度和亮度。色相值范围在0-360,饱和度和亮度均为百分比,从0%到100%。
Easily find HTML color codes for your website using our color picker, color chart and HTML color names with Hex color codes, RGB and HSL values.
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...
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. ...
Following is a sampling of HTML color codes used in HTML tags for setting background and font color. Colors are coded as red, green and blue intensities in hexadecimal notation (see hex chart).The first two characters represent the values 0 through 255 for red in hex; the middle two for...
HTML Color Names and Codes HTML Color Chart with Color Names 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...