Gold — 11-step color scale
Gold (#ffd700) sits at 500, untouched. Every other step is Gold 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, 800, 900, 950 clear the 4.5:1 line. On a dark surface, 50, 100, 200, 300, 400, 500, 600, 700 do.
Semantic colors from Gold
Success, warning, error and the rest are derived from Gold 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 | 8.8 | 15.0 | 42.2 |
| warning | 17.7 | 11.8 | 21.0 |
| error | 51.6 | 39.0 | 21.1 |
| discovery | 57.6 | 60.7 | 39.3 |
| info | 44.0 | 51.3 | 44.0 |
| neutral | 31.6 | 33.0 | 25.3 |
The success suggestion starts out colliding with Gold under Protanopia — ΔE₀₀ 8.8, below the 11 threshold — so the engine shifts its hue within the success family until the pair pulls apart again.
Export Gold
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: #fffceb;
--color-color-100: #fff5c2;
--color-color-200: #ffef99;
--color-color-300: #ffe970;
--color-color-400: #ffdf33;
--color-color-500: #ffd700;
--color-color-600: #ccac00;
--color-color-700: #8f7800;
--color-color-800: #665600;
--color-color-900: #3d3400;
--color-color-950: #141100;
}$color-color-50: #fffceb;
$color-color-100: #fff5c2;
$color-color-200: #ffef99;
$color-color-300: #ffe970;
$color-color-400: #ffdf33;
$color-color-500: #ffd700;
$color-color-600: #ccac00;
$color-color-700: #8f7800;
$color-color-800: #665600;
$color-color-900: #3d3400;
$color-color-950: #141100;export const color = {
50: '#fffceb',
100: '#fff5c2',
200: '#ffef99',
300: '#ffe970',
400: '#ffdf33',
500: '#ffd700',
600: '#ccac00',
700: '#8f7800',
800: '#665600',
900: '#3d3400',
950: '#141100',
};{
"color": {
"50": "#fffceb",
"100": "#fff5c2",
"200": "#ffef99",
"300": "#ffe970",
"400": "#ffdf33",
"500": "#ffd700",
"600": "#ccac00",
"700": "#8f7800",
"800": "#665600",
"900": "#3d3400",
"950": "#141100"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9882352941176471,
0.9215686274509803
],
"alpha": 1,
"hex": "#FFFCEB"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9607843137254902,
0.7607843137254902
],
"alpha": 1,
"hex": "#FFF5C2"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9372549019607843,
0.6
],
"alpha": 1,
"hex": "#FFEF99"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9137254901960784,
0.4392156862745098
],
"alpha": 1,
"hex": "#FFE970"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.8745098039215686,
0.2
],
"alpha": 1,
"hex": "#FFDF33"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.8431372549019608,
0
],
"alpha": 1,
"hex": "#FFD700"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8,
0.6745098039215687,
0
],
"alpha": 1,
"hex": "#CCAC00"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.5607843137254902,
0.47058823529411764,
0
],
"alpha": 1,
"hex": "#8F7800"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.4,
0.33725490196078434,
0
],
"alpha": 1,
"hex": "#665600"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.23921568627450981,
0.20392156862745098,
0
],
"alpha": 1,
"hex": "#3D3400"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0784313725490196,
0.06666666666666667,
0
],
"alpha": 1,
"hex": "#141100"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}