Skip to main content

Color Tints & Shades Generator

Lighter and darker variants of one color, in exact percentage steps.

Input

Any CSS color: HEX, rgb(), hsl(), oklch(), color() or a name.

Options

Each step adds about 10% white or black.

Color space

Exact per-channel mix with white and black.

Used as the variable prefix, for example --brand-tint-10.

Output

Click a swatch to copy its HEX. Labels switch between black and white for contrast; translucent colors are shown over white.

Base values

HEX
#3366CC
RGB
rgb(51 102 204)
HSL
hsl(220 60% 50%)
OKLCH
oklch(53.248% 0.1679 262.293)

Export

21 swatches · 10 steps · sRGB mix

Need harmonies, a 50–950 tonal scale or a full palette? Open Color Palette Generator

How to use

  1. 1.Type any CSS color (HEX, rgb(), hsl(), oklch(), color(display-p3 …) or a name) or pick one.
  2. 2.Choose how many steps you want; 10 steps gives 10%, 20%, … 100%.
  3. 3.Pick sRGB mix for exact percentage math or OKLCH perceptual for even-looking steps.
  4. 4.Click a swatch to copy its HEX and see its RGB, HSL and OKLCH values.
  5. 5.Copy every swatch in one format, or copy or download CSS variables, a Tailwind colors object or JSON design tokens.

Color Tints & Shades Generator

A tint is a color mixed with white and a shade is a color mixed with black. In sRGB mix mode every channel moves by the same percentage: tint = c + (1 − c) × p and shade = c × (1 − p), so Tint 50% of #3366CC is exactly #99B3E6, Tint 100% is white and Shade 100% is black. That is the same math as Sass mix() and most design handoff tools. OKLCH perceptual mode instead moves lightness evenly from the base toward 0.98 or 0.10 while chroma fades out, which keeps the hue from drifting toward purple or gray in blues and yellows.

sRGB mix or OKLCH perceptual

sRGB mix reproduces percentage math exactly and is the right choice when a design spec says "20% tint". Because sRGB is not perceptually uniform, its steps can look uneven and saturated hues can shift. OKLCH perceptual mode spaces lightness evenly and keeps the hue, then reduces chroma where a color does not fit the sRGB gamut; those swatches are marked as mapped. Translucent colors keep their alpha in both modes.

Privacy

Colors are calculated in your browser and never uploaded. Only your last color and settings are saved in this browser's local storage.

Frequently asked questions
How is a tint or shade calculated?
In sRGB mix mode each red, green and blue channel moves toward white or black by the step percentage: tint = c + (1 − c) × p and shade = c × (1 − p), rounded to the nearest byte. Tint 50% of #3366CC is #99B3E6, Tint 100% is #FFFFFF and Shade 100% is #000000.
When should I use OKLCH perceptual mode?
Use it when the steps should look evenly spaced and keep their hue. It moves OKLCH lightness from the base toward 0.98 or 0.10 while fading chroma, then reduces chroma where a color would fall outside sRGB. Those swatches are marked as mapped.
What happens to transparency?
Alpha is kept unchanged: a 50% transparent color produces 50% transparent tints and shades, exported as 8-digit HEX.
Can I enter a wide-gamut color such as Display P3?
Yes. A color outside sRGB is first mapped into sRGB by reducing chroma while keeping lightness and hue, and the tool says so before generating the variants.

CodingTool is officially live on