Turn one color into a full scale. Pick a base color and the tool shows its lighter tints, its darker shades and its muted tones, each with a HEX code and a contrast check. Choose how many steps you want, then copy the codes or a ready-made set of CSS variables. Everything runs in your browser, and nothing you enter is sent to a server.

One good color is a start. A scale of lighter and darker versions is what lets you build backgrounds, borders, hover states and text that all belong together.

How to use the shades and tints viewer

  • Pick a base color: type a HEX code, click the swatch to open the color picker, or press Random color.
  • Choose the scale: show tints and shades together, only tints, only shades, or muted tones.
  • Set the steps: use the slider to decide how many colors you get on each side of the base.
  • Look at the scale: the preview runs from the lightest color to the darkest, and the base color has a thicker outline.
  • Check the contrast: every row shows the contrast ratio of that color against white and against black.
  • Copy the codes: click a swatch or a row to copy one HEX code, or use the buttons for the full list or CSS variables.

Tints, shades and tones

All three are made by mixing your base color with another color. They only differ in what you mix it with.

NameMixed withWhat it looks like
TintWhiteA lighter, softer version of the color. Good for backgrounds and highlights.
ShadeBlackA darker, deeper version of the color. Good for text, borders and pressed states.
ToneGrayA calmer, less saturated version of the color. Good for quiet interface elements.
BaseNothingThe color you picked, shown in the middle of the scale.

How the scale is made

For each step, the tool moves the red, green and blue values of your base color toward white, black or gray by a set percentage. With 5 steps, the amounts are about 17%, 33%, 50%, 67% and 83%. The tool never goes all the way to 100%, so you do not get pure white or pure black. The contrast ratio uses the same formula as WCAG 2 and runs from 1:1 to 21:1. Normal text needs at least 4.5:1 to pass level AA.

What this tool does and does not do

The tool mixes colors in RGB, which is simple and matches how most design tools make tints and shades. Other methods, such as mixing in HSL or in a perceptual space like OKLCH, can give slightly different steps. The colors you copy are a starting point. Check them on your real design, on real screens, and test text colors on the backgrounds you plan to use.

Tips for better results

  • Start with a mid-tone base: a color that is neither very light nor very dark gives you room on both sides.
  • Use tints for backgrounds: the lightest steps work well for cards, alerts and table rows.
  • Use shades for text: a dark shade of your brand color often looks better than plain black.
  • Pick a few steps: most interfaces need only four to six colors from a scale.
  • Check the contrast: look at the ratio before you put text on a color.
  • Name your variables: a clear name such as brand or primary makes the CSS easier to use later.
Pick a base color, choose the steps, check the contrast and copy the codes. One scale can cover most of the colors a page needs.

Common color scale problems

  • The HEX field will not accept my code: use three or six letters and numbers from 0 to 9 and A to F, such as #17D or #1976D2.
  • The lightest colors look almost the same: use fewer steps, or pick a base color that is not already very light.
  • The shades look muddy: mixing with black can dull a color. Try a slightly brighter base color.
  • The text is hard to read: check the contrast ratio and choose a color from further along the scale.
  • My settings disappeared: the last settings are saved in your browser. Clearing site data or using a private window removes them.

Frequently asked questions

Is this shades and tints viewer free?

Yes. There is no sign-up and no limit on how many colors you test.

What is the difference between a shade and a tint?

A tint is a color mixed with white, so it gets lighter. A shade is a color mixed with black, so it gets darker. A tone is a color mixed with gray.

How many steps should I use?

Four to six steps on each side cover most designs. Use more only if you need very small changes between colors.

Can I copy the colors as CSS variables?

Yes. Press Copy CSS variables to get a :root block with one custom property for every color. You can change the variable name in the field above.

What contrast ratio do I need?

WCAG AA asks for 4.5:1 for normal text and 3:1 for large text. Level AAA asks for 7:1 and 4.5:1.

Why do my colors differ from another tool?

Tools use different mixing methods. This one mixes in RGB. A tool that mixes in HSL or OKLCH can give slightly different codes for the same steps.

Are my colors sent anywhere?

No. All calculations run in your browser, and your last settings are saved only on this device.

Share this article