Safari Color Tinting: Demo

Safari 15.0 or above required

Body Background

Fixed Position Background

Meta Theme Color

Safari tints its user interface to match the background color or a fixed element at the top or bottom edge. Learn more: github.com/andesco/safari-color-tinting

Tint Color

Safari uses the luma (perceived brightness) of the tint color to make the text in its user interface, such as tab titles, dark or light. Refer to Luma: Apple & Perceived Brightness.

When macOS or iOS are in Dark Mode, Safari darkens a light tint color so that its user interface conforms. Tab titles and other user interface text are therefore always light. When the luma of the tint color is more than 127.5, Safari multiplies each RGB value by 0.4: #FFFFFF becomes #666666.

Safari Settings

Users can enable or disable browser UI color tinting in Safari 26:

macOS: Safari › Settings › Tabs › Appearance: ✓ Show color in tab bar

iOS: Settings › Apps › Safari › Tabs: Allow Website Tinting ✓

Fixed Element Without Tinting

Safari does not sample a fixed element with a neutral backdrop-filter:

Tinting with a Minimal Fixed Element

#top-bar { position: fixed; top: -7px; left: 0; width: 100%; height: 12px; }
#bottom-bar { position: fixed; bottom: -8px; left: 0; width: 100%; height: 12px; }

Hidden Fixed Elements

Safari ignores a fixed element that is hidden:

#top-bar { position: fixed; top: -12px; left: 0; width: 100%; height: 12px; }
#bottom-bar { position: fixed; bottom: -12px; left: 0; width: 100%; height: 12px; }

More Demos

Example Code