Purple — 11-step color scale

Purple (#800080) sits at 500, untouched. Every other step is Purple composited over white or black at a decreasing opacity, so the whole ramp stays in one hue family instead of drifting toward another color at the ends.

Open Purple in the generator

8%50
24%100
40%200
56%300
80%400
100%500your color
80%600
56%700
40%800
24%900
8%950
Each step is the base composited over white or black at the opacity shown.#800080

For text that needs to pass AA on white, 400, 500, 600, 700, 800, 900, 950 clear the 4.5:1 line. On a dark surface, 50, 100, 200, 300 do.

Semantic colors from Purple

Success, warning, error and the rest are derived from Purple itself, then checked so they stay distinguishable from the base — and from each other — under the three types of color blindness. The distance below is CIEDE2000 after each simulation.

Derived from #800080
SuggestedProtanopiaDeuteranopiaTritanopia
success50.740.653.4
warning45.545.021.8
error11.223.511.7
discovery21.714.756.6
info13.75.546.4
neutral15.913.617.9
CIEDE2000 distance from the base under each simulation. The lowest of the three decides, and a dot marks the ones that land under 11.

The info suggestion starts out colliding with Purple under Deuteranopia — ΔE₀₀ 5.5, below the 11 threshold — so the engine shifts its hue within the info family until the pair pulls apart again.

Export Purple

The same five formats the generator produces, for this scale. Copy any block, or open the tool to tweak the ramp first.

CSS
:root {
  --color-color-50: #f5ebf5;
  --color-color-100: #e1c2e1;
  --color-color-200: #cc99cc;
  --color-color-300: #b870b8;
  --color-color-400: #993399;
  --color-color-500: #800080;
  --color-color-600: #660066;
  --color-color-700: #480048;
  --color-color-800: #330033;
  --color-color-900: #1f001f;
  --color-color-950: #0a000a;
}
SCSS
$color-color-50: #f5ebf5;
$color-color-100: #e1c2e1;
$color-color-200: #cc99cc;
$color-color-300: #b870b8;
$color-color-400: #993399;
$color-color-500: #800080;
$color-color-600: #660066;
$color-color-700: #480048;
$color-color-800: #330033;
$color-color-900: #1f001f;
$color-color-950: #0a000a;
JavaScript
export const color = {
  50: '#f5ebf5',
  100: '#e1c2e1',
  200: '#cc99cc',
  300: '#b870b8',
  400: '#993399',
  500: '#800080',
  600: '#660066',
  700: '#480048',
  800: '#330033',
  900: '#1f001f',
  950: '#0a000a',
};
JSON
{
  "color": {
    "50": "#f5ebf5",
    "100": "#e1c2e1",
    "200": "#cc99cc",
    "300": "#b870b8",
    "400": "#993399",
    "500": "#800080",
    "600": "#660066",
    "700": "#480048",
    "800": "#330033",
    "900": "#1f001f",
    "950": "#0a000a"
  }
}
Figma Variables
{
  "color": {
    "50": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.9607843137254902,
          0.9215686274509803,
          0.9607843137254902
        ],
        "alpha": 1,
        "hex": "#F5EBF5"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:1",
        "com.figma.isOverride": true
      }
    },
    "100": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.8823529411764706,
          0.7607843137254902,
          0.8823529411764706
        ],
        "alpha": 1,
        "hex": "#E1C2E1"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:2",
        "com.figma.isOverride": true
      }
    },
    "200": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.8,
          0.6,
          0.8
        ],
        "alpha": 1,
        "hex": "#CC99CC"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:3",
        "com.figma.isOverride": true
      }
    },
    "300": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.7215686274509804,
          0.4392156862745098,
          0.7215686274509804
        ],
        "alpha": 1,
        "hex": "#B870B8"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:4",
        "com.figma.isOverride": true
      }
    },
    "400": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.6,
          0.2,
          0.6
        ],
        "alpha": 1,
        "hex": "#993399"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:5",
        "com.figma.isOverride": true
      }
    },
    "500": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.5019607843137255,
          0,
          0.5019607843137255
        ],
        "alpha": 1,
        "hex": "#800080"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:6",
        "com.figma.isOverride": true
      }
    },
    "600": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.4,
          0,
          0.4
        ],
        "alpha": 1,
        "hex": "#660066"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:7",
        "com.figma.isOverride": true
      }
    },
    "700": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.2823529411764706,
          0,
          0.2823529411764706
        ],
        "alpha": 1,
        "hex": "#480048"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:8",
        "com.figma.isOverride": true
      }
    },
    "800": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.2,
          0,
          0.2
        ],
        "alpha": 1,
        "hex": "#330033"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:9",
        "com.figma.isOverride": true
      }
    },
    "900": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.12156862745098039,
          0,
          0.12156862745098039
        ],
        "alpha": 1,
        "hex": "#1F001F"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:10",
        "com.figma.isOverride": true
      }
    },
    "950": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.0392156862745098,
          0,
          0.0392156862745098
        ],
        "alpha": 1,
        "hex": "#0A000A"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:11",
        "com.figma.isOverride": true
      }
    }
  },
  "$extensions": {
    "com.figma.modeName": "Value"
  }
}

Open Purple in the generatorHow the scale is built