Moccasin — 11-step color scale
Moccasin (#ffe4b5) sits at 500, untouched. Every other step is Moccasin 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 Moccasin in the generator
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 Moccasin
Success, warning, error and the rest are derived from Moccasin 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 | 13.5 | 18.0 | 36.9 |
| warning | 18.7 | 16.1 | 18.1 |
| error | 29.7 | 25.3 | 16.2 |
| discovery | 37.2 | 39.5 | 37.2 |
| info | 23.7 | 30.4 | 39.4 |
| neutral | 18.8 | 19.6 | 16.5 |
The success suggestion is the closest call: it clears the threshold under Protanopia, but only reaches ΔE₀₀ 13.5, so it sits just above the 11 line rather than comfortably past it.
Export Moccasin
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: #fffdf9;
--color-color-100: #fff9ed;
--color-color-200: #fff4e1;
--color-color-300: #fff0d6;
--color-color-400: #ffe9c4;
--color-color-500: #ffe4b5;
--color-color-600: #ccb691;
--color-color-700: #8f8065;
--color-color-800: #665b48;
--color-color-900: #3d372b;
--color-color-950: #14120e;
}$color-color-50: #fffdf9;
$color-color-100: #fff9ed;
$color-color-200: #fff4e1;
$color-color-300: #fff0d6;
$color-color-400: #ffe9c4;
$color-color-500: #ffe4b5;
$color-color-600: #ccb691;
$color-color-700: #8f8065;
$color-color-800: #665b48;
$color-color-900: #3d372b;
$color-color-950: #14120e;export const color = {
50: '#fffdf9',
100: '#fff9ed',
200: '#fff4e1',
300: '#fff0d6',
400: '#ffe9c4',
500: '#ffe4b5',
600: '#ccb691',
700: '#8f8065',
800: '#665b48',
900: '#3d372b',
950: '#14120e',
};{
"color": {
"50": "#fffdf9",
"100": "#fff9ed",
"200": "#fff4e1",
"300": "#fff0d6",
"400": "#ffe9c4",
"500": "#ffe4b5",
"600": "#ccb691",
"700": "#8f8065",
"800": "#665b48",
"900": "#3d372b",
"950": "#14120e"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9921568627450981,
0.9764705882352941
],
"alpha": 1,
"hex": "#FFFDF9"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9764705882352941,
0.9294117647058824
],
"alpha": 1,
"hex": "#FFF9ED"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9568627450980393,
0.8823529411764706
],
"alpha": 1,
"hex": "#FFF4E1"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9411764705882353,
0.8392156862745098
],
"alpha": 1,
"hex": "#FFF0D6"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.9137254901960784,
0.7686274509803922
],
"alpha": 1,
"hex": "#FFE9C4"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
1,
0.8941176470588236,
0.7098039215686275
],
"alpha": 1,
"hex": "#FFE4B5"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.8,
0.7137254901960784,
0.5686274509803921
],
"alpha": 1,
"hex": "#CCB691"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.5607843137254902,
0.5019607843137255,
0.396078431372549
],
"alpha": 1,
"hex": "#8F8065"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.4,
0.3568627450980392,
0.2823529411764706
],
"alpha": 1,
"hex": "#665B48"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.23921568627450981,
0.21568627450980393,
0.16862745098039217
],
"alpha": 1,
"hex": "#3D372B"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0784313725490196,
0.07058823529411765,
0.054901960784313725
],
"alpha": 1,
"hex": "#14120E"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}