CSS Color
CSS Color is a CSS module that deals with colors, color types, color blending, opacity, and how you can apply these colors and effects to HTML content.
Not all CSS properties that take a <color>
as a value are part of this module, but they do depend upon it.
Reference
Properties
Data types
Guides
- Applying color to HTML elements using CSS
-
A guide to using CSS to apply color to a variety of types of content. All color-related CSS properties are touched upon.
Tools
- Color picker tool
-
This tool makes it easy to create, adjust, and experiment with custom colors.
Specifications
Specification |
---|
CSS Color Module Level 4 |
Browser compatibility
color property
BCD tables only load in the browser
print-color-adjust property
No compatibility data found for css.properties.print-color-adjust
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
opacity property
BCD tables only load in the browser
See also
- Color-related properties that are part of other specifications:
background-color
,border-color
,outline-color
,text-decoration-color
,text-emphasis-color
,text-shadow
,caret-color
, andcolumn-rule-color
- In CSS, gradients aren't colors but images.