`print-color-adjust` CSS property
Baseline Newly available
This feature works across the latest devices and browser versions. This feature might not work in older devices or browser versions. It's been available across browsers since May 2025.
The print-color-adjust CSS property sets what, if anything, the user agent may do to optimize the appearance of the element on the output device. By default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
Syntax
print-color-adjust: economy; print-color-adjust: exact; /* Global values */ print-color-adjust: inherit; print-color-adjust: initial; print-color-adjust: revert; print-color-adjust: revert-layer; print-color-adjust: unset;
Values
This property is specified as one of the following keyword values:
-
economy - The user agent is allowed to make adjustments to the element as it deems appropriate and prudent in order to optimize the output for the device it's being rendered for. For example, when printing, a browser might opt to leave out all background images and to adjust text colors to be sure the contrast is optimized for reading on white paper. This is the default.
-
exact - The element's content has been specifically and carefully crafted to use colors, images, and styles in a thoughtful and/or important way, such that being altered by the browser might actually make things worse rather than better. The appearance of the content should not be changed except by the user's request. For example, a page might include a list of information with rows whose background colors alternate between white and a light gray. Removing the background color would decrease the legibility of the content.
Usage notes
There are a number of reasons a browser might wish to deviate from the specified appearance, such as:
- The content uses text and background colors that will be too similar on the output device for legibility purposes.
- If the output device is a printer, and to save ink, dark or extremely dense background images might be removed.
- When printing a page, the browser might want to replace light-colored text on a dark background with dark text on a white background.
Any options the user agent offers the user to allow them to control the use of color and images will take priority over the value of print-color-adjust. In other words, there isn't any guarantee that print-color-adjust will do anything. Not only can the user override the behavior, but each user agent is allowed to decide for itself how to handle print-color-adjust in any given situation.
Formal definition
| Initial value | economy |
|---|---|
| Applies to | all elements |
| Inherited | yes |
| Computed value | as specified |
| Animation type | discrete |
Formal syntax
print-color-adjust =
economy |
exact
Examples
Preserving low contrast
In this example, a box is shown which uses a background-image and a translucent linear-gradient() function atop a black background color to have a dark blue gradient behind medium red text. For whatever reason, this is the desired appearance in any rendering environment, including on paper, so we also use print-color-adjust: exact to tell the browser not to make color or style adjustments to the box when rendering it.
CSS
.my-box {
background-color: black;
background-image: linear-gradient(rgb(0 0 180 / 50%), rgb(70 140 220 / 50%));
color: #990000;
width: 15rem;
height: 6rem;
text-align: center;
font:
24px "Helvetica",
sans-serif;
display: flex;
align-items: center;
justify-content: center;
print-color-adjust: exact;
}
HTML
<div class="my-box"> <p>Need more contrast!</p> </div>
Result
Specifications
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on iOS | Samsung Internet | WebView Android | WebView on iOS | |
print-color-adjust |
136
17Chrome does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 26, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
136
79Edge does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 79, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
97
48
|
121
15Opera does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 15, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
15.4
6Safari does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants. |
136
18Chrome Android does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 26, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
97
48
|
90
14Opera Android does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 14, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
15.4
6Safari on iOS does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants. |
29.0
1.0Samsung Browser does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 1.5, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
136
4.4WebView Android does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants.Before version 4.4, if background images are clipped (for example, when using background-image sprites) and -webkit-print-color-adjust is set to exact, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See bug 40219905. |
15.4
6WebView on iOS does not print backgrounds of the<body> element. If this property is set to exact for the <body> element, it will apply only to its descendants. |
economy |
136 |
136 |
97 |
121 |
6 |
136 |
97 |
90 |
6 |
29.0 |
136 |
6 |
exact |
136 |
136 |
97 |
121 |
6 |
136 |
97 |
90 |
6 |
29.0 |
136 |
6 |
See also
- Other color-related properties:
color,background-color,border-color,outline-color,text-decoration-color,text-emphasis-color,text-shadow,caret-color, andcolumn-rule-color background-image
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/print-color-adjust