Skip to content
web color

File:Untitled_Diagram.drawio.png · Wikimedia Commons · See Wikimedia Commons

EntityQ376346· pop 63· linked from 722 articles

Also known as HTML colors, HTML named colors, web safe colors

color used in designing web pages

AI overview

Web color refers to the colors displayed on websites, defined using standardized codes like hex numbers (e.g., #FF5733) that tell browsers exactly which shade to show. It matters because consistent, well-chosen colors make websites easier to read, more visually appealing, and help communicate information effectively to visitors.

AI-generated from the Wikipedia summary — may contain errors.

Wikidata facts

Image
SVG1.1 Color Swatch.svg
Show 1 more fact
number of parts of this work
141
Sources (2)

via Wikidata · CC0

~17 min read

Article

Web colors, also known as hex codes and color codes, are colors used in displaying web pages on the World Wide Web; they can be described by way of three methods: a color may be specified as an RGB triplet, in hexadecimal format (a hex triplet) or according to its common English name in some cases. A color tool or other graphics software is often used to generate color values. In some uses, hexadecimal color codes are specified with notation using a leading number sign (#). A color is specified according to the intensity of its red, green and blue components, each represented by eight bits. Thus, there are 24 bits used to specify a web color within the sRGB gamut, and 16,777,216 colors that may be so specified. In hexadecimal, these are specified with two hexadecimal digits per color, leading to a total of six hexadecimal digits. In some contexts, it is possible to specify two more place values, which provide a transparency (alpha) channel.

Colors outside the sRGB gamut can be specified in Cascading Style Sheets by making one or more of the red, green and blue components negative or greater than 100%, so the color space is theoretically an unbounded extrapolation of sRGB similar to scRGB. Specifying a non-sRGB color this way requires the RGB() function call. It is impossible with the hexadecimal syntax (and thus impossible in legacy HTML documents that do not use CSS).

Gallery (3)

Connections

Categories