This template takes in a single hex color and (assuming mixing with white) returns a color with the appropriate blending and alpha transparency to achieve that color.

The primary use of this template is to ensure that colors appear appropriately in both light and dark mode.

Usage

edit

Inside an HTML tag, use {{LDHex|hex color}} as well as "color:inherit".