> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Messaging: readable text on accent colors

The Messaging chat now picks text colors that hold the WCAG AA contrast ratio of 4.5:1 on and in your accent color. An AI Agent with a mid-tone accent color can look different.

* On some accent colors, the text on a button fell below 4.5:1 when an end user hovered over, focused, or pressed the button. For these colors, the button now gets lighter in these states instead of darker, or darker instead of lighter. A button at rest does not change.
* Some text uses your accent color, such as quick replies. If your accent color is below 4.5:1 against the chat background, this text now uses a darker shade of your accent color in the light theme, or a lighter shade in the dark theme. The hue stays the same.

If you set the text on your accent color with **Advanced colors**, the chat keeps that color. Check that it holds 4.5:1 against your accent color.

The [Lovelace theming guide](/lovelace/theming#the-mapping) describes how the chat applies your accent color.