Gray — 11-step color scale
Gray (#808080) sits at 500, untouched. Every other step is Gray 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, 600, 700, 800, 900, 950 clear the 4.5:1 line. On a dark surface, 50, 100, 200, 300, 400, 500 do.
Semantic colors from Gray
Success, warning, error and the rest are derived from Gray 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 | 9.5 | 6.4 | 16.6 |
| warning | 13.6 | 14.8 | 18.7 |
| error | 12.0 | 7.8 | 18.7 |
| discovery | 14.7 | 15.2 | 12.8 |
| info | 6.5 | 9.2 | 20.7 |
| neutral | 4.3 | 4.8 | 14.2 |
The neutral suggestion starts out colliding with Gray under Protanopia — ΔE₀₀ 4.3, below the 11 threshold — so the engine shifts its hue within the neutral family until the pair pulls apart again.
Export Gray
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: #f5f5f5;
--color-color-100: #e1e1e1;
--color-color-200: #cccccc;
--color-color-300: #b8b8b8;
--color-color-400: #999999;
--color-color-500: #808080;
--color-color-600: #666666;
--color-color-700: #484848;
--color-color-800: #333333;
--color-color-900: #1f1f1f;
--color-color-950: #0a0a0a;
}$color-color-50: #f5f5f5;
$color-color-100: #e1e1e1;
$color-color-200: #cccccc;
$color-color-300: #b8b8b8;
$color-color-400: #999999;
$color-color-500: #808080;
$color-color-600: #666666;
$color-color-700: #484848;
$color-color-800: #333333;
$color-color-900: #1f1f1f;
$color-color-950: #0a0a0a;export const color = {
50: '#f5f5f5',
100: '#e1e1e1',
200: '#cccccc',
300: '#b8b8b8',
400: '#999999',
500: '#808080',
600: '#666666',
700: '#484848',
800: '#333333',
900: '#1f1f1f',
950: '#0a0a0a',
};{
"color": {
"50": "#f5f5f5",
"100": "#e1e1e1",
"200": "#cccccc",
"300": "#b8b8b8",
"400": "#999999",
"500": "#808080",
"600": "#666666",
"700": "#484848",
"800": "#333333",
"900": "#1f1f1f",
"950": "#0a0a0a"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.9607843137254902,
0.9607843137254902,
0.9607843137254902
],
"alpha": 1,
"hex": "#F5F5F5"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8823529411764706,
0.8823529411764706,
0.8823529411764706
],
"alpha": 1,
"hex": "#E1E1E1"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8,
0.8,
0.8
],
"alpha": 1,
"hex": "#CCCCCC"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.7215686274509804,
0.7215686274509804,
0.7215686274509804
],
"alpha": 1,
"hex": "#B8B8B8"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.6,
0.6,
0.6
],
"alpha": 1,
"hex": "#999999"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.5019607843137255,
0.5019607843137255,
0.5019607843137255
],
"alpha": 1,
"hex": "#808080"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.4,
0.4,
0.4
],
"alpha": 1,
"hex": "#666666"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.2823529411764706,
0.2823529411764706,
0.2823529411764706
],
"alpha": 1,
"hex": "#484848"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.2,
0.2,
0.2
],
"alpha": 1,
"hex": "#333333"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.12156862745098039,
0.12156862745098039,
0.12156862745098039
],
"alpha": 1,
"hex": "#1F1F1F"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0392156862745098,
0.0392156862745098,
0.0392156862745098
],
"alpha": 1,
"hex": "#0A0A0A"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}