Color Shades Generator screenshot

Color Shades Generator

Generate 2 to 20 darker shades or lighter tints of one colour, each with its hex, rgb() and WCAG contrast against white or black. Works offline.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

How the shade table is built

A shade is the colour mixed toward black and a tint is the same colour mixed toward white, both in sRGB so the result matches what a stylesheet will draw. The page always prints the ramp darkest first, which is why a darken run ends on your base colour and a lighten run starts on it; both together runs from black through the base to white. Each row carries the WCAG contrast ratio against the background a viewer would read it on — white behind a dark swatch, black behind a light one, swapping at the luminance where those two ratios meet. The ratio linearises each channel, so two colours with the same average brightness can still differ.

How to use it

The Color Shades Generator page needs no pasted input: set Base colour (default "#2563eb"), Steps (default "10") and Direction (default "both"), then press Run to build a new shade table.

Worked example

Input:


Output:

Base colour: #2563eb  rgb(37, 99, 235)
Contrast is measured against #ffffff for dark shades and #000000 for light shades (WCAG 2.1 relative luminance).

#000000  rgb(0, 0, 0)  contrast: 21.00:1
#040b1a  rgb(4, 11, 26)  contrast: 19.66:1
#081634  rgb(8, 22, 52)  contrast: 17.88:1
#0c214e  rgb(12, 33, 78)  contrast: 15.63:1
#102c68  rgb(16, 44, 104)  contrast: 13.27:1
#153783  rgb(21, 55, 131)  contrast: 11.02:1
#19429d  rgb(25, 66, 157)  contrast: 9.10:1
#1d4db7  rgb(29, 77, 183)  contrast: 7.51:1
#2158d1  rgb(33, 88, 209)  contrast: 6.21:1
#2563eb  rgb(37, 99, 235)  contrast: 5.17:1
#3d74ed  rgb(61, 116, 237)  contrast: 4.92:1
#5586ef  rgb(85, 134, 239)  contrast: 6.04:1
#6e97f2  rgb(110, 151, 242)  contrast: 7.37:1
#86a8f4  rgb(134, 168, 244)  contrast: 8.92:1
#9ebaf6  rgb(158, 186, 246)  contrast: 10.81:1
#b6cbf8  rgb(182, 203, 248)  contrast: 12.89:1
#cfdcfb  rgb(207, 220, 251)  contrast: 15.28:1
#e7eefd  rgb(231, 238, 253)  contrast: 18.05:1
#ffffff  rgb(255, 255, 255)  contrast: 21.00:1

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

A shade is the colour mixed toward black and a tint is the same colour mixed toward white, both in sRGB so the result matches what a stylesheet will draw. The page always prints the ramp darkest first, which is why a darken run ends on your base colour and a lighten run starts on it; both together runs from black through the base to white. Each row carries the WCAG contrast ratio against the background a viewer would read it on — white behind a dark swatch, black behind a light one, swapping at the luminance where those two ratios meet. The ratio linearises each channel, so two colours with the same average brightness can still differ.

Generate 2 to 20 darker shades or lighter tints of one colour, each with its hex, rgb() and WCAG contrast against white or black. Works offline.

How to use it

The Color Shades Generator page needs no pasted input: set Base colour (default "#2563eb"), Steps (default "10") and Direction (default "both"), then press Run to build a new shade table.

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

What to Expect

What this tool keeps

  • The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

Sample output

Base colour: #2563eb rgb(37, 99, 235) Contrast is measured against #ffffff for dark shades and #000000 for light shades (WCAG 2.1 relative luminance). #000000 rgb(0, 0, 0) contrast: 21.00:1 #040b1a rgb(4, 11, 26) contrast: 19.66:1 #081634 rgb(8, 22, 52) contrast: 17.88:1 #0c214e rgb(12, 33, 78) contrast: 15.63:1 #102c68 rgb(16, 44, 104) contrast: 13.27:1 #153783 rgb(21, 55, 131) contrast: 11.02:1 #19429d rgb(25, 66, 157) contrast: 9.10:1 #1d4db7 rgb(29, 77, 183) contrast: 7.51:1 #2158d1 rgb(33, 88, 209) contrast: 6.21:1 #2563eb rgb(37, 99, 235) contrast: 5.17:1 #3d74ed rgb(61, 116, 237) contrast: 4.92:1 #5586ef rgb(85, 134, 239) contrast: 6.04:1 #6e97f2 rgb(110, 151, 242) contrast: 7.37:1 #86a8f4 rgb(134, 168, 244) contrast: 8.92:1 #9ebaf6 rgb(158, 186, 246) contrast: 10.81:1 #b6cbf8 rgb(182, 203, 248) contrast: 12.89:1 #cfdcfb rgb(207, 220, 251) contrast: 15.28:1 #e7eefd rgb(231, 238, 253) contrast: 18.05:1 #ffffff rgb(255, 255, 255) contrast: 21.00:1

Frequently asked questions

How do I use the color shades generator?

The Color Shades Generator page needs no pasted input: set Base colour (default "#2563eb"), Steps (default "10") and Direction (default "both"), then press Run to build a new shade table.

Is my input uploaded?

Nothing is uploaded. The result is produced on this page.

Is there a size limit?

No: nothing is pasted, so there is no input size to exceed.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.