Peru — 11-step color scale

Peru (#cd853f) sits at 500, untouched. Every other step is Peru 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 Peru in the generator

8%50
24%100
40%200
56%300
80%400
100%500your color
80%600
56%700
40%800
24%900
8%950
Each step is the base composited over white or black at the opacity shown.#cd853f

For text that needs to pass AA on white, 700, 800, 900, 950 clear the 4.5:1 line. On a dark surface, 50, 100, 200, 300, 400, 500, 600 do.

Semantic colors from Peru

Success, warning, error and the rest are derived from Peru 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.

Derived from #cd853f
SuggestedProtanopiaDeuteranopiaTritanopia
success6.86.746.8
warning16.111.76.6
error39.833.87.3
discovery49.952.057.7
info38.243.354.4
neutral17.518.618.2
CIEDE2000 distance from the base under each simulation. The lowest of the three decides, and a dot marks the ones that land under 11.

The warning suggestion starts out colliding with Peru under Tritanopia — ΔE₀₀ 6.6, below the 11 threshold — so the engine shifts its hue within the warning family until the pair pulls apart again.

Export Peru

The same five formats the generator produces, for this scale. Copy any block, or open the tool to tweak the ramp first.

CSS
:root {
  --color-color-50: #fbf5f0;
  --color-color-100: #f3e2d1;
  --color-color-200: #ebceb2;
  --color-color-300: #e3bb93;
  --color-color-400: #d79d65;
  --color-color-500: #cd853f;
  --color-color-600: #a46a32;
  --color-color-700: #734a23;
  --color-color-800: #523519;
  --color-color-900: #31200f;
  --color-color-950: #100b05;
}
SCSS
$color-color-50: #fbf5f0;
$color-color-100: #f3e2d1;
$color-color-200: #ebceb2;
$color-color-300: #e3bb93;
$color-color-400: #d79d65;
$color-color-500: #cd853f;
$color-color-600: #a46a32;
$color-color-700: #734a23;
$color-color-800: #523519;
$color-color-900: #31200f;
$color-color-950: #100b05;
JavaScript
export const color = {
  50: '#fbf5f0',
  100: '#f3e2d1',
  200: '#ebceb2',
  300: '#e3bb93',
  400: '#d79d65',
  500: '#cd853f',
  600: '#a46a32',
  700: '#734a23',
  800: '#523519',
  900: '#31200f',
  950: '#100b05',
};
JSON
{
  "color": {
    "50": "#fbf5f0",
    "100": "#f3e2d1",
    "200": "#ebceb2",
    "300": "#e3bb93",
    "400": "#d79d65",
    "500": "#cd853f",
    "600": "#a46a32",
    "700": "#734a23",
    "800": "#523519",
    "900": "#31200f",
    "950": "#100b05"
  }
}
Figma Variables
{
  "color": {
    "50": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.984313725490196,
          0.9607843137254902,
          0.9411764705882353
        ],
        "alpha": 1,
        "hex": "#FBF5F0"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:1",
        "com.figma.isOverride": true
      }
    },
    "100": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.9529411764705882,
          0.8862745098039215,
          0.8196078431372549
        ],
        "alpha": 1,
        "hex": "#F3E2D1"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:2",
        "com.figma.isOverride": true
      }
    },
    "200": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.9215686274509803,
          0.807843137254902,
          0.6980392156862745
        ],
        "alpha": 1,
        "hex": "#EBCEB2"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:3",
        "com.figma.isOverride": true
      }
    },
    "300": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.8901960784313725,
          0.7333333333333333,
          0.5764705882352941
        ],
        "alpha": 1,
        "hex": "#E3BB93"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:4",
        "com.figma.isOverride": true
      }
    },
    "400": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.8431372549019608,
          0.615686274509804,
          0.396078431372549
        ],
        "alpha": 1,
        "hex": "#D79D65"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:5",
        "com.figma.isOverride": true
      }
    },
    "500": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.803921568627451,
          0.5215686274509804,
          0.24705882352941178
        ],
        "alpha": 1,
        "hex": "#CD853F"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:6",
        "com.figma.isOverride": true
      }
    },
    "600": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.6431372549019608,
          0.41568627450980394,
          0.19607843137254902
        ],
        "alpha": 1,
        "hex": "#A46A32"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:7",
        "com.figma.isOverride": true
      }
    },
    "700": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.45098039215686275,
          0.2901960784313726,
          0.13725490196078433
        ],
        "alpha": 1,
        "hex": "#734A23"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:8",
        "com.figma.isOverride": true
      }
    },
    "800": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.3215686274509804,
          0.20784313725490197,
          0.09803921568627451
        ],
        "alpha": 1,
        "hex": "#523519"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:9",
        "com.figma.isOverride": true
      }
    },
    "900": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.19215686274509805,
          0.12549019607843137,
          0.058823529411764705
        ],
        "alpha": 1,
        "hex": "#31200F"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:10",
        "com.figma.isOverride": true
      }
    },
    "950": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.06274509803921569,
          0.043137254901960784,
          0.0196078431372549
        ],
        "alpha": 1,
        "hex": "#100B05"
      },
      "$extensions": {
        "com.figma.variableId": "VariableID:1:11",
        "com.figma.isOverride": true
      }
    }
  },
  "$extensions": {
    "com.figma.modeName": "Value"
  }
}

Open Peru in the generatorHow the scale is built