Mauricio Robles

Tool

UI palette generator

Type a colour and get a scale from 50 to 950, then see it painted on a gallery of mock interfaces. Add a secondary scale, tinted greys and status colours when you need them, check every contrast pair, and export the result as Tailwind v4 or v3, CSS, SCSS, Less, JSON, design tokens or an SVG sheet.

Tool

Add scales

Shade scales

Click a shade to copy its hex. The chip shows whether white or ink text (the scale's 950 shade) reaches 4.5:1 on it. Hover a shade for the exact ratios.

Primaryorange

Contrast grid

Each cell is the background shade (row) with the text shade (column) set on it. ✓ is AA, 4.5:1 or more. ~ is AA large, 3:1 to 4.5:1, for large text and graphics. Faded is below 3:1.

Contrast grid: Primary. Background / Text
Background / Text50100200300400500600700800900950
50same shade100 on 50: 1.08 to 1, Fail200 on 50: 1.26 to 1, Fail300 on 50: 1.59 to 1, Fail400 on 50: 2.14 to 1, Fail500 on 50: 2.84 to 1, Fail600 on 50: 3.73 to 1, AA large700 on 50: 5.07 to 1, AA800 on 50: 7.03 to 1, AA900 on 50: 9.21 to 1, AA950 on 50: 14.47 to 1, AA
10050 on 100: 1.08 to 1, Failsame shade200 on 100: 1.16 to 1, Fail300 on 100: 1.47 to 1, Fail400 on 100: 1.98 to 1, Fail500 on 100: 2.63 to 1, Fail600 on 100: 3.45 to 1, AA large700 on 100: 4.68 to 1, AA800 on 100: 6.49 to 1, AA900 on 100: 8.51 to 1, AA950 on 100: 13.38 to 1, AA
20050 on 200: 1.26 to 1, Fail100 on 200: 1.16 to 1, Failsame shade300 on 200: 1.27 to 1, Fail400 on 200: 1.70 to 1, Fail500 on 200: 2.26 to 1, Fail600 on 200: 2.96 to 1, Fail700 on 200: 4.02 to 1, AA large800 on 200: 5.58 to 1, AA900 on 200: 7.31 to 1, AA950 on 200: 11.49 to 1, AA
30050 on 300: 1.59 to 1, Fail100 on 300: 1.47 to 1, Fail200 on 300: 1.27 to 1, Failsame shade400 on 300: 1.35 to 1, Fail500 on 300: 1.78 to 1, Fail600 on 300: 2.34 to 1, Fail700 on 300: 3.18 to 1, AA large800 on 300: 4.41 to 1, AA large900 on 300: 5.78 to 1, AA950 on 300: 9.08 to 1, AA
40050 on 400: 2.14 to 1, Fail100 on 400: 1.98 to 1, Fail200 on 400: 1.70 to 1, Fail300 on 400: 1.35 to 1, Failsame shade500 on 400: 1.32 to 1, Fail600 on 400: 1.74 to 1, Fail700 on 400: 2.36 to 1, Fail800 on 400: 3.28 to 1, AA large900 on 400: 4.29 to 1, AA large950 on 400: 6.75 to 1, AA
50050 on 500: 2.84 to 1, Fail100 on 500: 2.63 to 1, Fail200 on 500: 2.26 to 1, Fail300 on 500: 1.78 to 1, Fail400 on 500: 1.32 to 1, Failsame shade600 on 500: 1.31 to 1, Fail700 on 500: 1.78 to 1, Fail800 on 500: 2.47 to 1, Fail900 on 500: 3.24 to 1, AA large950 on 500: 5.10 to 1, AA
60050 on 600: 3.73 to 1, AA large100 on 600: 3.45 to 1, AA large200 on 600: 2.96 to 1, Fail300 on 600: 2.34 to 1, Fail400 on 600: 1.74 to 1, Fail500 on 600: 1.31 to 1, Failsame shade700 on 600: 1.36 to 1, Fail800 on 600: 1.88 to 1, Fail900 on 600: 2.47 to 1, Fail950 on 600: 3.88 to 1, AA large
70050 on 700: 5.07 to 1, AA100 on 700: 4.68 to 1, AA200 on 700: 4.02 to 1, AA large300 on 700: 3.18 to 1, AA large400 on 700: 2.36 to 1, Fail500 on 700: 1.78 to 1, Fail600 on 700: 1.36 to 1, Failsame shade800 on 700: 1.39 to 1, Fail900 on 700: 1.82 to 1, Fail950 on 700: 2.86 to 1, Fail
80050 on 800: 7.03 to 1, AA100 on 800: 6.49 to 1, AA200 on 800: 5.58 to 1, AA300 on 800: 4.41 to 1, AA large400 on 800: 3.28 to 1, AA large500 on 800: 2.47 to 1, Fail600 on 800: 1.88 to 1, Fail700 on 800: 1.39 to 1, Failsame shade900 on 800: 1.31 to 1, Fail950 on 800: 2.06 to 1, Fail
90050 on 900: 9.21 to 1, AA100 on 900: 8.51 to 1, AA200 on 900: 7.31 to 1, AA300 on 900: 5.78 to 1, AA400 on 900: 4.29 to 1, AA large500 on 900: 3.24 to 1, AA large600 on 900: 2.47 to 1, Fail700 on 900: 1.82 to 1, Fail800 on 900: 1.31 to 1, Failsame shade950 on 900: 1.57 to 1, Fail
95050 on 950: 14.47 to 1, AA100 on 950: 13.38 to 1, AA200 on 950: 11.49 to 1, AA300 on 950: 9.08 to 1, AA400 on 950: 6.75 to 1, AA500 on 950: 5.10 to 1, AA600 on 950: 3.88 to 1, AA large700 on 950: 2.86 to 1, Fail800 on 950: 2.06 to 1, Fail900 on 950: 1.57 to 1, Failsame shade

Preview

Mock interface painted only with your scales. Text on every fill is chosen by contrast, at 4.5:1 or more.

New release

Build something people love

A calm, fast workspace for teams who ship every week.

Get startedLearn more

Weekly revenue

MonTueWedThuFriSatSun
  • Subscriptions
  • Upgrades
  • Add-ons

Ship faster, together

One board for every release.

Goal progress

72%of target
  • Done 72%
  • In review 18%
  • To do 10%

This month

  • Visitors

    24.8k

    up 12%
  • Signups

    1,284

    up 8%
  • Churn

    2.1%

    down 0.4%

Latest posts

DesignGuideNews
  • Choosing a colour scale

    Eleven steps, one clear logic.

    5 min read

  • Contrast without guesswork

    Numbers you can check.

    5 min read

  • Shipping a design system

    What we kept and what we cut.

    5 min read

Components

SaveCancelSoftGhostDisabled
NeutralPrimaryAccentOutline

Email

name@example.com

We only use it to sign you in.

Notifications on
Notifications off
Remember me
  • Note. Turn on the status scales to preview alerts.

Team

Most popular

$29per month

  • Unlimited projects
  • Shared libraries
  • Priority support
Choose plan

Changes saved

Your palette was updated.

Undo
Link copiedClose
Home
Reports
Team
Settings

Overview

  • Revenue

    $48k

  • Orders

    932

  • Users

    3.4k

Sales, last 12 weeks

CustomerPlanState
NorthwindTeamActive
GlobexProPending
InitechTeamPaused

Marks and avatars

Alex Morgan

Product designer

Gradients and steps

How it works and assumptions

The UI palette generator turns one hex colour into an 11-step shade scale (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950) calculated in the OKLCH colour space. The step closest to your colour keeps your exact hex, and the other steps follow a lightness curve close to the default Tailwind CSS palette. It can also build a secondary scale, a neutral grey scale tinted toward your colour and four status scales (success, info, warning, error), checks the WCAG 2 contrast of every pair of shades, previews the scales on mock interface cards, and exports Tailwind v4, Tailwind v3, CSS variables, SCSS, Less, JSON, W3C Design Tokens (DTCG) or an SVG swatch sheet.

  • The colour is converted to OKLCH, a space where equal steps in lightness look equal. Each step has a fixed target lightness, close to Tailwind's curve, and the step nearest to your colour takes your exact hex. The lighter and darker steps are spaced between it and the ends of the curve, so lightness always falls from 50 to 950.
  • Chroma follows your colour's, peaks in the middle of the scale and tapers toward 50 and 950. Colours outside the sRGB gamut are brought in by lowering chroma, never lightness or hue. Greys and near-black or near-white inputs work too, with very little chroma.
  • The secondary scale rotates the hue around the wheel by the harmony you pick (auto is 60 degrees, complementary 180, analogous 30, triadic 120, split-complementary 150) and keeps your lightness and chroma, or starts from a hex you type. Neutrals share your hue at very low chroma. Status scales use a standard hue for success, info, warning and error, with lightness and chroma moved 30% toward yours.
  • Contrast is the WCAG 2 ratio: 4.5:1 for normal text (AA), 3:1 for large text and graphics (AA large). In the preview, text colour on each fill is chosen by that ratio, so body text stays at 4.5:1 or more. The preview and the scales are only a starting point; check your own screens.
  • The palette lives in the address bar (c for the colour, s for the secondary, n and st for neutrals and status), so you can share it by copying the link.

Frequently asked questions

How are the shades calculated?

Your hex colour is converted to OKLCH (lightness, chroma, hue). Each of the 11 steps has a fixed target lightness close to Tailwind's, and the step nearest your colour takes your exact hex. The steps on each side are spaced between it and the ends of the curve, so lightness always falls from 50 to 950. Chroma follows your colour's and tapers toward 50 and 950, and colours outside the sRGB gamut are brought in by lowering chroma only.

Which export formats are there, and how do I use the palette in Tailwind CSS v4?

Press the Export button next to the colour field. Every format covers all the scales you turned on, in HEX or OKLCH, with Copy and Download: Tailwind v4 (@theme), Tailwind v3 config, CSS custom properties, SCSS variables and map, Less variables, JSON, W3C Design Tokens (DTCG) JSON for tools such as Tokens Studio for Figma, and an SVG swatch sheet. For Tailwind v4, copy the @theme block into your main CSS file after @import "tailwindcss". Each step becomes a theme variable such as --color-orange-500, and Tailwind generates utilities like bg-orange-500 and text-orange-50 from it. Tailwind v4 accepts both hex and oklch() values.

How do I check contrast?

Each shade carries a chip that says whether white or ink text (the scale's 950 shade) reaches the WCAG 2 AA ratio of 4.5:1 on it, and hovering a shade shows both exact ratios. The contrast grid shows every shade as text on every other shade as background and marks each pair as AA (4.5:1 or more), AA large (3:1 to 4.5:1) or fail (below 3:1, faded).

Can I share or save a palette?

Yes. The palette is stored in the page address: c is the main colour, s the secondary scale, n the neutral scale and st the status scales, for example ?c=ee6f2c&s=comp&n=1&st=1. Copy the link, or use the Copy link button, to share it or come back to it later.

What are the secondary, neutral and status scales?

The secondary scale rotates your hue by a colour harmony (complementary, analogous, triadic, split-complementary or automatic) or starts from a hex you choose. The neutral scale is a grey scale tinted toward your hue at low chroma. The four status scales (success, info, warning, error) each use a standard hue, with lightness and chroma moved 30% toward your colour so they sit together. In the preview, status colours always come with an icon and a label.

Reading that goes with this tool.