Yahoo Web Search

Search results

  1. www.w3schools.com › cssref › css_colorsCSS Colors - W3Schools

    Learn how to use 140 color names in CSS to set the background-color and text color of any element. See the color names, hex values, color mixer and color picker for each color.

  2. Learn how to use color names in CSS to specify colors for your web pages. See the basic and extended color keywords, their hex and RGB values, and examples of how to apply them.

    Color Name
    Hex Value
    Rgb Value
    aliceblue
    #F0F8FF
    rgb (240, 248, 255)
    antiquewhite
    #FAEBD7
    rgb (250, 235, 215)
    aqua
    #00FFFF
    rgb (0, 255, 255)
    aquamarine
    #7FFFD4
    rgb (127, 255, 212)
  3. Learn how to use 140 HTML color names in your web design and development. Find the Hex color codes and RGB values for each color name.

  4. www.w3schools.com › css › css_colorsCSS Colors - W3Schools

    Learn how to use color names, RGB, HEX, HSL, RGBA, and HSLA values in CSS. See examples of background, text, and border colors with code and live demos.

    Code sample

    <h1 style="background-color:DodgerBlue;">Hello World</h1>
    <p style="background-color:Tomato;">Lorem ipsum...</p>
  5. People also ask

    • Overview
    • Syntax
    • Description
    • Browser compatibility
    • See also

    The CSS data type is the name of a color, such as red, blue, black, or lightseagreen. Syntactically, a is an .

    A value can be used anywhere a can be used.

    Value

    Named colors consists of standard colors, the transparent and currentcolor keywords.

    transparent

    The transparent keyword represents a fully transparent color. This makes the background behind the colored item completely visible. Technically, transparent is a shortcut for rgb(0 0 0 / 0%). To prevent unexpected behavior, such as in a , the current CSS spec states that transparent should be calculated in the alpha-premultiplied color space. However, be aware that older browsers may treat it as black with an alpha value of 0. The transparent keyword wasn't a true color in CSS Level 2 (Revision 1). It was a special keyword that could be used instead of a regular value on two CSS properties: background and border. It was essentially added to allow developers to override an inherited solid color. With the advent of alpha channels in CSS Colors Level 3, transparent was redefined as a true color. It can now be used wherever a value can be used.

    All names specify a color in the sRGB color space. Although the names more or less describe their respective colors, they are essentially artificial, without a strict rationale behind the terms used.

    The color keywords all represent plain, solid colors without transparency.

    Several keywords are aliases for each other:

    •aqua / cyan

    •fuchsia / magenta

    •darkgray / darkgrey

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    • : the data type of whose definition is a constituent part.

  6. Color HTML / CSS Color Name Hex Code #RRGGBB Decimal Code (R,G,B) lawngreen #7CFC00: rgb(124,252,0) chartreuse #7FFF00: rgb(127,255,0) limegreen #32CD32: rgb(50,205,50) lime #00FF00: rgb(0.255.0) forestgreen #228B22: rgb(34,139,34) green #008000: rgb(0,128,0) darkgreen #006400: rgb(0,100,0) greenyellow: #ADFF2F: rgb(173,255,47) yellowgreen ...

  7. Apr 25, 2024 · Named colors use the RGB model and are associated with the sRGB (srgb) color space. There are over 160 named colors. There are named colors of special interest: transparent sets a transparent color value, while currentcolor sets the current value of the CSS color property.

  1. People also search for