CSS forced-color-adjust Property
Description
The forced-color-adjust property lets an author control whether the user agent may apply its forced-colors / high-contrast color mapping to an element. In environments where the user has requested a system-level high-contrast or forced-colors theme, the user agent commonly remaps author-specified color values to a small system palette to ensure legibility and respect the user’s preference. By using this property an author can prevent those automatic remappings for specific elements when preservation of the original colors is important (for example, a brand logo or a deliberately styled icon), or allow the UA to perform its normal adjustments where accessibility takes priority.
When the UA does perform forced-color adjustments it typically affects many visual properties: foreground and background painting, borders and outlines, and even decorative effects such as shadows and SVG fills. That means author decisions about color and background-color can be overridden by the UA’s palette in forced-colors mode unless the author has used the property to opt out. Similarly, effects like box-shadow and focus treatments such as outline can be affected by the UA’s recoloring; preserving an element’s exact appearance across forced-color modes may require preventing UA adjustments and then taking on responsibility for accessible styling yourself.
From an accessibility standpoint this property should be used carefully. Letting the UA map colors in forced-colors mode is usually the safest way to ensure text remains readable and focus indicators remain visible for users who rely on the system palette. Authors should only opt out for specific, well-justified cases (for example, preserving non-essential brand artwork) and when they can provide an accessible fallback: ensure contrast and visible focus, supply alternative text for critical imagery, and test with actual forced-colors/high-contrast settings. If you choose to preserve author colors, you’re taking responsibility for ensuring those elements remain perceivable and operable under the user’s chosen color scheme.
In practice, use this property selectively and test across real user-agent implementations. Consider whether preserving a specific visual detail is worth the trade-off in accessibility; often a better approach is to create alternate styling that respects the forced-colors palette while maintaining brand recognition. When debugging, inspect how UA-level recoloring is being applied and check how your preserved elements behave in keyboard navigation and screen-reader contexts so you don’t inadvertently remove essential contrast or focus cues.
Definition
- Initial value
- auto
- Applies to
- all elements and text
- Inherited
- yes
- Computed value
- as specified
- Animatable
- no
- JavaScript syntax
- object.style.forcedColor-Adjust
Syntax
forced-color-adjust: auto | none
Values
- autoThe element's colors are adjusted by the user agent in forced colors mode. This is the default.
- noneThe element's colors are not automatically adjusted by the user agent in forced colors mode.
Example
Browser Support
The following information will show you the current browser support for the CSS forced-color-adjust property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
