guide

How to Create Color Tints in CSS (2026)

By Rui Barreira · Last updated: 18 June 2026

A color tint is a lighter variation of a base color, created by mixing it with white. Tints are the backbone of design systems — they give you a palette of softer, accessible shades from a single brand color without guessing. The brevio Color Tint Generator produces a full tint scale in your browser instantly, with HEX, RGB, and HSL output ready to paste into your CSS.

How CSS Color Tints Work

Mixing a color with white means moving each RGB channel closer to 255. The formula for a tint at strength t (where 0 = original, 1 = pure white) is:

R' = R + (255 - R) × t
G' = G + (255 - G) × t
B' = B + (255 - B) × t

For example, a 40% tint of #1a73e8 (Google Blue, R=26 G=115 B=232) gives:

R' = 26  + (255 - 26)  × 0.4 = 117.6 → 118
G' = 115 + (255 - 115) × 0.4 = 171.0 → 171
B' = 232 + (255 - 232) × 0.4 = 242.8 → 243
→ #7aaff3

In modern CSS you can express this directly without pre-computing values using color-mix():

/* 40% tint = 40% white mixed in */
background: color-mix(in srgb, #1a73e8 60%, white);

Building a Tint Scale for a Design System

Most design systems define between 5 and 11 tint stops. A common 10-stop scale uses 10%, 20%, 30%… through 90% white mix, leaving the 0% stop as the base color. This maps cleanly to Tailwind-style numeric tokens:

TokenWhite mixTypical use
brand-10090%Page backgrounds, hover states
brand-20080%Subtle fills, disabled text backgrounds
brand-30060%Light badges, tag chips
brand-40040%Placeholder text, muted icons
brand-5000% (base)Primary buttons, links

Once you have the hex values, declare them as CSS custom properties so every component inherits from the same source of truth:

:root {
  --brand-100: #ddeeff;
  --brand-200: #bbd9fc;
  --brand-300: #7aaff3;
  --brand-400: #4d8eeb;
  --brand-500: #1a73e8;
}

Tints vs Shades vs Tones

These three terms are often confused. A tint mixes the base color with white (lighter). A shade mixes it with black (darker). A tone mixes it with gray (desaturated). For UI design, tints are the safest starting point because they preserve perceived hue and remain legible against dark text. Shades are useful for hover and active states on colored surfaces. Tones work well for secondary text or disabled states where full saturation would compete visually.

Checking Contrast on Tinted Backgrounds

A common mistake is placing dark brand-colored text on a light tint and assuming it passes WCAG AA (4.5:1 contrast ratio). Always verify — tints above 60% white mix are usually safe for black text, but the base color itself may fail against white text. Use your browser DevTools accessibility panel or a dedicated contrast checker after generating the tint scale.

Generate your full tint palette instantly with the Color Tint Generator — pick any base color, choose your scale size, and copy CSS variables in one click.

Frequently Asked Questions

Is this tool free?
Yes — completely free, no signup required. All processing happens in your browser.
Does the tool work offline?
Once loaded, most features work without an internet connection since everything runs client-side.
More free toolsSee all 469
Merge PDFsCompress ImageJSON FormatterPassword GeneratorVAT CalculatorQR Code Generator
How to Create Color Tints in CSS (2026) | brevio