Red — 11-step color scale
Red (#ff0000) sits at 500, untouched. Every other step is Red 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 Red
Success, warning, error and the rest are derived from Red 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 | 23.2 | 19.3 | 63.0 |
| warning | 9.2 | 3.7 | 3.3 |
| error | 46.4 | 37.3 | 18.7 |
| discovery | 58.9 | 63.0 | 61.3 |
| info | 50.9 | 53.8 | 58.9 |
| neutral | 23.4 | 24.6 | 26.1 |
The warning suggestion starts out colliding with Red under Tritanopia — ΔE₀₀ 3.3, below the 11 threshold — so the engine shifts its hue within the warning family until the pair pulls apart again.
Export Red
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: #ffebeb;
--color-color-100: #ffc2c2;
--color-color-200: #ff9999;
--color-color-300: #ff7070;
--color-color-400: #ff3333;
--color-color-500: #ff0000;
--color-color-600: #cc0000;
--color-color-700: #8f0000;
--color-color-800: #660000;
--color-color-900: #3d0000;
--color-color-950: #140000;
}$color-color-50: #ffebeb;
$color-color-100: #ffc2c2;
$color-color-200: #ff9999;
$color-color-300: #ff7070;
$color-color-400: #ff3333;
$color-color-500: #ff0000;
$color-color-600: #cc0000;
$color-color-700: #8f0000;
$color-color-800: #660000;
$color-color-900: #3d0000;
$color-color-950: #140000;export const color = {
50: '#ffebeb',
100: '#ffc2c2',
200: '#ff9999',
300: '#ff7070',
400: '#ff3333',
500: '#ff0000',
600: '#cc0000',
700: '#8f0000',
800: '#660000',
900: '#3d0000',
950: '#140000',
};{
"color": {
"50": "#ffebeb",
"100": "#ffc2c2",
"200": "#ff9999",
"300": "#ff7070",
"400": "#ff3333",
"500": "#ff0000",
"600": "#cc0000",
"700": "#8f0000",
"800": "#660000",
"900": "#3d0000",
"950": "#140000"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9215686274509803,
0.9215686274509803
],
"alpha": 1,
"hex": "#FFEBEB"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.7607843137254902,
0.7607843137254902
],
"alpha": 1,
"hex": "#FFC2C2"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.6,
0.6
],
"alpha": 1,
"hex": "#FF9999"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.4392156862745098,
0.4392156862745098
],
"alpha": 1,
"hex": "#FF7070"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.2,
0.2
],
"alpha": 1,
"hex": "#FF3333"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0,
0
],
"alpha": 1,
"hex": "#FF0000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8,
0,
0
],
"alpha": 1,
"hex": "#CC0000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.5607843137254902,
0,
0
],
"alpha": 1,
"hex": "#8F0000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.4,
0,
0
],
"alpha": 1,
"hex": "#660000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.23921568627450981,
0,
0
],
"alpha": 1,
"hex": "#3D0000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0784313725490196,
0,
0
],
"alpha": 1,
"hex": "#140000"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}