Indigo — 11-step color scale
Indigo (#4b0082) sits at 500, untouched. Every other step is Indigo 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.
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 Indigo
Success, warning, error and the rest are derived from Indigo 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.
| Suggested | Protanopia | Deuteranopia | Tritanopia |
|---|---|---|---|
| success | 50.9 | 47.6 | 31.7 |
| warning | 44.6 | 49.8 | 28.8 |
| error | 14.8 | 28.8 | 23.5 |
| discovery | 25.4 | 20.2 | 42.4 |
| info | 10.5 | 8.1 | 30.4 |
| neutral | 17.1 | 18.0 | 14.4 |
The info suggestion starts out colliding with Indigo under Deuteranopia — ΔE₀₀ 8.1, below the 11 threshold — so the engine shifts its hue within the info family until the pair pulls apart again.
Export Indigo
The same five formats the generator produces, for this scale. Copy any block, or open the tool to tweak the ramp first.
:root {
--color-color-50: #f1ebf5;
--color-color-100: #d4c2e1;
--color-color-200: #b799cd;
--color-color-300: #9a70b9;
--color-color-400: #6f339b;
--color-color-500: #4b0082;
--color-color-600: #3c0068;
--color-color-700: #2a0049;
--color-color-800: #1e0034;
--color-color-900: #12001f;
--color-color-950: #06000a;
}$color-color-50: #f1ebf5;
$color-color-100: #d4c2e1;
$color-color-200: #b799cd;
$color-color-300: #9a70b9;
$color-color-400: #6f339b;
$color-color-500: #4b0082;
$color-color-600: #3c0068;
$color-color-700: #2a0049;
$color-color-800: #1e0034;
$color-color-900: #12001f;
$color-color-950: #06000a;export const color = {
50: '#f1ebf5',
100: '#d4c2e1',
200: '#b799cd',
300: '#9a70b9',
400: '#6f339b',
500: '#4b0082',
600: '#3c0068',
700: '#2a0049',
800: '#1e0034',
900: '#12001f',
950: '#06000a',
};{
"color": {
"50": "#f1ebf5",
"100": "#d4c2e1",
"200": "#b799cd",
"300": "#9a70b9",
"400": "#6f339b",
"500": "#4b0082",
"600": "#3c0068",
"700": "#2a0049",
"800": "#1e0034",
"900": "#12001f",
"950": "#06000a"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.9450980392156862,
0.9215686274509803,
0.9607843137254902
],
"alpha": 1,
"hex": "#F1EBF5"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8313725490196079,
0.7607843137254902,
0.8823529411764706
],
"alpha": 1,
"hex": "#D4C2E1"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.7176470588235294,
0.6,
0.803921568627451
],
"alpha": 1,
"hex": "#B799CD"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.6039215686274509,
0.4392156862745098,
0.7254901960784313
],
"alpha": 1,
"hex": "#9A70B9"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.43529411764705883,
0.2,
0.6078431372549019
],
"alpha": 1,
"hex": "#6F339B"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.29411764705882354,
0,
0.5098039215686274
],
"alpha": 1,
"hex": "#4B0082"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.23529411764705882,
0,
0.40784313725490196
],
"alpha": 1,
"hex": "#3C0068"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.16470588235294117,
0,
0.28627450980392155
],
"alpha": 1,
"hex": "#2A0049"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.11764705882352941,
0,
0.20392156862745098
],
"alpha": 1,
"hex": "#1E0034"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.07058823529411765,
0,
0.12156862745098039
],
"alpha": 1,
"hex": "#12001F"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.023529411764705882,
0,
0.0392156862745098
],
"alpha": 1,
"hex": "#06000A"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}