🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors
CSS colors - CSS | MDN
The color syntax converter below shows the values of the currently selected color in red-green-blue (RGB), hexadecimal (HEX), hue, saturation, and lightness (HSL), and hue, whiteness, and blackness (HWB) CSS color formats.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › color
color - CSS | MDN
MDN Understanding WCAG, Guideline 1.4 explanations · Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0 · color = <color> The following are all ways to make a paragraph's text red: css ·
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › color_value
<color> - CSS | MDN
The CSS data type represents a color. A may also include an alpha-channel transparency value, indicating how the color should composite with its background.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › system-color
<system-color> - CSS | MDN
css · .button { border: 0; padding: 10px; box-shadow: -2px -2px 5px gray, 2px 2px 5px gray; } @media (forced-colors: active) { .button { /* Use a border instead, since box-shadow is forced to 'none' in forced-colors mode */ border: 2px ButtonBorder solid; } } <color>: the data type these keywords belong to · Was this page helpful to you? Yes · No Learn how to contribute · This page was last modified on Dec 16, 2025 by MDN contributors.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors › Color_values
CSS color values - CSS | MDN
There are two primary ways of defining an RGB color by its red, green, and blue components in CSS — hexadecimal and rgb() values. Like named colors, these methods use the RGB model and are associated with the sRGB (srgb) color space.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors › Using_relative_colors
Using relative colors - CSS | MDN
The CSS colors module defines relative color syntax, which allows a CSS value to be defined relative to another color. This is a powerful feature that enables the programmatic creation of complements to existing colors — such as lighter, darker, saturated, semi-transparent, or inverted variants ...
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors › Applying_color
Applying color to HTML elements using CSS - CSS | MDN
With CSS, there are lots of ways to add color to your HTML elements to create the look you want. This guide is a primer introducing how CSS can be used to apply colors to HTML elements. This guide includes lists of the CSS properties that set color in their values and how to use colors both ...
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › named-color
<named-color> - CSS | MDN
Named colors consists of standard colors, the transparent and currentColor keywords. ... Initially, in CSS Level 1, only 16 basic colors were defined, with orange added in CSS Level 2. Web designers found this list too short, and browser vendors added numerous names for colors based on the ...
🌐
Mozilla
developer.mozilla.org › en-US › blog › css-color-module-level-4
New functions, gradients, and hues in CSS colors (Level 4) | MDN Blog
Learn what's new in CSS Colors Module Level 4, including color spaces, color functions, fancy gradients, and support for wide-gamut displays.
🌐
MDN Web Docs
devdoc.net › web › developer.mozilla.org › en-US › docs › Web › CSS › currentColor.html
- CSS | MDN
The color CSS data type represents a color in the sRGB color space. A color can be described in any of the following ways:
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors › Color_format_converter
Color format converter - CSS | MDN
This tool lets you enter or pick a color and copy its corresponding value in any CSS color format. You can use the generated color value anywhere the data type is supported in CSS. This tool can also help you understand the syntax of the different color notations.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › color-scheme
color-scheme - CSS | MDN
The color-scheme CSS property allows an element to indicate which color schemes it can comfortably be rendered in. User agents change the following aspects of the UI chrome to match the used color scheme:
🌐
GitHub
github.com › mdn › css-examples › blob › main › modules › colors.html
css-examples/modules/colors.html at main · mdn/css-examples
Code examples that accompany the MDN CSS documentation - css-examples/modules/colors.html at main · mdn/css-examples
Author   mdn
🌐
Reality Ripple
udn.realityripple.com › docs › Web › CSS › color
color - CSS: Cascading Style Sheets
p { color: red; } p { color: #f00; } p { color: #ff0000; } p { color: rgb(255,0,0); } p { color: rgb(100%, 0%, 0%); } p { color: hsl(0, 100%, 50%); } /* 50% translucent */ p { color: #ff000080; } p { color: rgba(255, 0, 0, 0.5); } p { color: hsla(0, 100%, 50%, 0.5); } The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › color_value › color-mix
color-mix() - CSS | MDN
The mixed colors include red, blue, and yellow with LCH hue values of approximately 41deg, 301deg, and 100deg, respectively. To reduce code redundancy, we used CSS custom properties for both colors and for the interpolation method, setting different values on each <ul>.
🌐
Can I Use
caniuse.com › mdn-css_properties_text-decoration-color
CSS property: text-decoration-color | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
🌐
W3Schools
w3schools.com › css › css_colors.asp
CSS Colors
In CSS, colors are specified by using a predefined color name, or with a RGB, HEX, HSL, RGBA, HSLA value.
🌐
Reality Ripple
udn.realityripple.com › docs › Web › CSS › color_value
- CSS: Cascading Style Sheets
If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ... See implementation notes. See implementation notes. User must explicitly enable this feature. User must explicitly enable this feature. The opacity property lets you define transparency at the element level. Some common properties that use this data type: color, background-color, border-color, box-shadow, outline-color, text-shadow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Colors › Color_mixer
Color mixer - CSS | MDN
= colorToRGBA(e.target.value); Object.assign(currentColor, color); colorInput.value = rgbToHEXText(currentColor); colorOpacitySlider.value = currentColor.alpha; }); colorInput.addEventListener("input", (e) => { const text = e.target.value; currentColor.r = parseInt(text.slice(1, 3), 16); currentColor.g = parseInt(text.slice(3, 5), 16); currentColor.b = parseInt(text.slice(5, 7), 16); colorTextInput.value = rgbaToHEXAText(currentColor); colorOpacitySlider.value = currentColor.alpha; }); colorOpacitySlider.addEventListener("input", (e) => { const value = parseFloat(e.target.value); if (value >=