Color-adjust, forced-color-adjust et print-color-adjust - CSS Property
Summary of characteristics of the color-adjust
property
economy
| exact
economy
Discrète
: during an animation, the color-adjust
property passes from one value to another without transition.Syntax schema.
color-adjust
property
print-color-adjust
property
forced-color-adjust
property
On the diagram, the links give access to a more precise description of the values.
Description of the color-adjust
, forced-color-adjust
et print-color-adjust
property.
color-adjust
property is a shorthand property equivalent to the two properties forced-color-adjust
and print-color-adjust
. At this time, it is recommended that you use the detailed properties for color optimization on the screen or in print.
These three properties indicate whether the browser is allowed to optimize colors. Currently this optimization mainly concerns printing, but other optimizations are planned in the future, for example, to improve readability, even on a screen.
color-adjust
is a shorthand property which includes the following properties:
forced-color-adjust
: On-screen color optimization.print-color-adjust
: Color optimisation in print.
Need for on-screen optimization.
- On the screen, when the text color and background color are very close to each other, optimization can improve readability.
Need for print optimization.
- When printed, large flat areas of color consume a lot of ink. They can also soak the paper and cause ripples. This is the case if you try to print white text on a black background. The browser can then decide to invert the colors of the foreground (text) and background.
- Another example: a print of the text in gray on a color printer uses the three red, green and blue ink cartridges to create gray, whereas a black print would have consumed only black ink.
- Color distinction problem on a black and white print. Some colors may be easy to distinguish on a color screen, but too close in brightness on monochrome printing.
Interaction with operating system settings.
Operating systems offer a "high contrast" mode. The user can decide to opt for this mode. This option interacts with the effect of the properties described on this page.

Normal display mode on Windows

High-contrast display mode on Windows
Note: Enabling High Contrast Mode can be tested with a media query. See the directive @media
, and more
especially forced-colors.
When it comes to printing, the user can usually disable the printing of background images and solid colors.
The options chosen by the user take precedence: the print-color-adjust
property has no longer any effect.
Values for color-adjust
or print-color-adjust
.
- color-adjust: economy;
Default. The browser is allowed to optimize colors to save ink or improve readability.
- color-adjust: exact;
The browser must print the colors as defined by the style sheet. This value can be used when colors bring meaning and not only have an aesthetic role.
However, the user may always decide, at the time of printing, to opt for the opposite option.
Values for forced-color-adjust
.
- color-adjust: auto;
The browser follows the operating system settings, especially if the high-contrast display mode is enabled.
- color-adjust: none;
The browser does not optimize readability, even if a high-contrast display has been requested by the operating system. This value is not of much interest, except in very special cases. The developer must then write the styles himself to adapt to the chosen display mode, for example by using a Media Query query forced-colors.
- color-adjust: preserve-parent-color;
If the element's color is inherited from the parent (
inherit
orcurrentColor
), the browser does not change the color to optimize readability. If the color is not inherited from the parent, this value is equivalent tonone
.
Values common to all properties:
color-adjust: initial (economy
)
color-adjust: inherit
color-adjust: revert
color-adjust: revertLayer
color-adjust: unset
forced-color-adjust: initial (auto)
forced-color-adjust: inherit
forced-color-adjust: revert
forced-color-adjust: revertLayer
forced-color-adjust: unset
print-color-adjust: initial (economy
)
print-color-adjust: inherit
print-color-adjust: revert
print-color-adjust: revertLayer
print-color-adjust: unset
Common values are presented on these pages: initial
, inherit
, revert
, revert-layer
, unset
.
Simulator.
You can manipulate the simulator by changing the system's display mode (normal mode or high-contrast mode). For printing, you will need to preview and see if the second frame is printed on a black background or not. The third frame will have a background image or not, when printed or on the preview.
Some browsers change one of the colors to improve readability.
Show print preview to see the effect of the color-adjust property.
Browser support (compatibility).
The color-adjust
property is not standardized by the W3C, so it is recommended that it be used with caution and
to decline syntaxes with the prefixes -moz-
and -webkit-
.
color-adjust
property (this property is deprecated: it is normal that it is not very supported).forced-color-adjust
property to indicate whether colors should be optimized on the screen.print-color-ajust
property that decides whether colors should be optimized for printing.Notes:
(1) Use the non-standard -ms-hight-contrast-adjust
property.
(2) With the browser prefix: -webkit-
.
Does not print the background of the body but only of its descendants.
(3) Does not print the background of the body but only of its descendants.
color-adjust
property
forced-color-adjust
property
print-color-adjust
property
Browsers on computers :
Mobile browsers :
Outdated or marginal browsers :

Internet Explorer

Baidu Browser

QQ Browser

Opéra Mobile

Firefox

Chrome

Safari

Edge

Opéra

Chrome pour Androïd

Safari sur IOS

Samsung Internet

UC Browser pour Androïd

Androïd Brower

Firefox pour Androïd

KaiOS Browser

Opéra mini
color-adjust
properties historic.
-
CSS Color Adjustment Module Level 1
Introduction of three properties to manage color optimization, on screen or in print:color-adjust
(deprecated),print-color-adjust
andforced-color-adjust
.May 21, 2019Working Draft.February 10, 2022Candidate Recommendation.
Color adjustment. See also...
Color adjustment is handled in a specific module of the CSS standard: CSS Color Adjustment Module. The following definitions are described in this module:
Properties:

Functions:
