NinjaFunction (Ninja Function) logo

Color Shades Generator

Pick any color and get 7 shades of the same hue instantly. Copy HEX and RGB codes with one click.


Pick a Base Color

#000000
rgb(0, 0, 0)
#000000
rgb(0, 0, 0)
#0E2D28
rgb(14, 45, 40)
BASE
#1C5C52
rgb(28, 92, 82)
#2A8B7C
rgb(42, 139, 124)
#3ABEA9
rgb(58, 190, 169)
#70D4C4
rgb(112, 212, 196)

Palette Preview

About This Tool

NinjaFunction's Color Shades Generator produces 7 shades (three darker, the base, three lighter) from any color you pick. Each shade shows its HEX and RGB value with a one-click Copy button. Copy the entire palette as CSS variables with a single click. Everything runs locally in your browser.

🎨 How to Use

  1. Pick a base color using the color picker or type a HEX code.
  2. Seven shades of the same hue appear instantly below.
  3. The middle shade is the base — it's marked with a BASE badge.
  4. Copy any HEX or RGB value with the small Copy button next to it.
  5. Click "Copy as CSS" to grab the entire palette as CSS variables.

💡 Pro Tips

  • ✔ Start From Your Brand Color – Enter your primary hex and generate a full palette that stays on-brand for buttons, cards, and text.
  • ✔ Darkest for Text, Lightest for Background – Use the far shades for body text on light backgrounds and cards for maximum contrast.
  • ✔ Use the Middle for Hovers – The base and its neighbors make natural hover and active states that feel cohesive.
  • ✔ Copy as CSS Variables – Click "Copy as CSS" to paste a full :root block into your stylesheet in one step.
  • ✔ Check Contrast – The BASE badge auto-picks black or white text for readability. Use the same pairing on your own site.
  • ✔ Copy HEX or RGB with One Click – Use the 📋 Copy buttons next to each value depending on what your code needs.
  • ✔ Works Offline – Once loaded, all color math runs in your browser — no data is sent anywhere.

About Color Shades

A color shade is a darker or lighter version of a base color. By keeping the hue and saturation constant and varying only the lightness, you get a consistent palette — this is exactly how design systems like Tailwind CSS, Material Design and Bootstrap build their color scales.

HEX Colors

A HEX color is a 6-digit code representing red, green and blue channels in hexadecimal (e.g. #1C5C52). It's the most common format in CSS and design tools.

RGB Colors

RGB expresses colors as three decimal values from 0 to 255, one per channel. Useful for programmatic color manipulation in JavaScript and canvas rendering.

Why 7 shades?

Seven steps (three darker, the base, three lighter) give enough range for hover states, borders, backgrounds and text without overwhelming the eye. Adjust the base and the entire scale shifts with it.

Shades, Tints and Tones

TermHow it is madeEffect
ShadeAdd blackDarker, deeper colour
TintAdd whiteLighter, softer colour
ToneAdd greyMuted, less intense colour

Where Colour Shades Are Used

  • Buttons: a base colour with a darker shade on hover.
  • Backgrounds and cards: a very light tint with dark text on top.
  • Charts: shades of one colour show values from low to high.
  • Design systems: a scale from 100 to 900 for each brand colour.

Using the Palette in CSS

Copy the palette as CSS variables and paste it into your stylesheet, named --shade-1 (darkest) to --shade-7 (lightest). Then use var(--shade-6), for example, wherever you need that colour. If the brand colour ever changes, you update the variables in one place and the whole site follows.

FAQ

How are the shades generated?

Your color is converted to HSL (Hue, Saturation, Lightness). We keep the hue and saturation the same and shift only the lightness by −40, −25, −12, 0, +12, +25 and +40. This keeps all seven colors in the same family.

Are these the same shades Tailwind uses?

Similar in spirit, but Tailwind uses hand-tuned per-hue values. Ours is algorithmic and works for any input color.

Is anything sent to a server?

No. All conversion happens locally in your browser. Your color choices never leave your device.

Why are some shades pure white or pure black?

Lightness cannot go below 0% or above 100%. If your colour is already very light, say 70% lightness, adding 40 would pass 100%, so that shade becomes white. Very dark colours do the same at the black end. Start from a mid-tone colour for seven distinct shades.

What can I copy?

Each shade shows its HEX and RGB values, and you can copy either with one click. You can also copy the whole palette as CSS variables named --shade-1 (darkest) to --shade-7 (lightest).

Always FreeAll tools are 100% free to use.
No Sign UpNo registration or login required.
Blazing FastInstant results, always.