Skip to content

Material Palette

CSS variables
:root {
  --color-1: #F44336;
  --color-2: #2196F3;
  --color-3: #4CAF50;
  --color-4: #FFEB3B;
  --color-5: #9C27B0;
}
Tailwind config
// tailwind.config.js
colors: {
  "material-1": "#F44336",
  "material-2": "#2196F3",
  "material-3": "#4CAF50",
  "material-4": "#FFEB3B",
  "material-5": "#9C27B0",
}
About this palette

The Material palette is a curated set of 5 colors with their HEX, RGB and ready CSS-variable and Tailwind exports. Click any swatch for that color's full breakdown — conversions, contrast and harmonies.

Readable text on each color

White and near-black measured against every swatch. AA means the pairing clears 4.5:1 for body text; Large means it only clears 3:1, so reserve it for 24px and up.

Aa
#F44336Near-black5.13:1AA
Aa
#2196F3Near-black6.05:1AA
Aa
#4CAF50Near-black6.80:1AA
Aa
#FFEB3BNear-black15.47:1AA
Aa
#9C27B0White6.30:1AA
These colours on each other

2 of the 20 combinations inside this palette clear 4.5:1 for body text. Rows are the text colour, columns the background.

text \\ background#F44336#2196F3#4CAF50#FFEB3B#9C27B0
#F443361.18Fails1.32Fails3.02Large only1.71Fails
#2196F31.18Fails1.12Fails2.56Fails2.02Fails
#4CAF501.32Fails1.12Fails2.28Fails2.27Fails
#FFEB3B3.02Large only2.56Fails2.28Fails5.16AA
#9C27B01.71Fails2.02Fails2.27Fails5.16AA
More palettes

Related

Gradients in the same range

✓ Copied