The Util Box

Material Design Colors

Free online material design colors. Generate Material 3 color palettes. Perfect for designers and developers.

#6750a4
LightDark
Primary
#6750a4
--md-sys-color-primary
On Primary
#f0eef6
--md-sys-color-on-primary
Primary Container
#e1dced
--md-sys-color-primary-container
On Primary Container
#483873
--md-sys-color-on-primary-container
Secondary
#744edb
--md-sys-color-secondary
On Secondary
#f1edfb
--md-sys-color-on-secondary
Secondary Container
#e3dcf8
--md-sys-color-secondary-container
On Secondary Container
#513799
--md-sys-color-on-secondary-container
Tertiary
#3488a5
--md-sys-color-tertiary
On Tertiary
#ebf3f6
--md-sys-color-on-tertiary
Tertiary Container
#d6e7ed
--md-sys-color-tertiary-container
On Tertiary Container
#245f73
--md-sys-color-on-tertiary-container
Error
#b3261e
--md-sys-color-error
On Error
#ffffff
--md-sys-color-on-error
Error Container
#f9dedc
--md-sys-color-error-container
On Error Container
#410e0b
--md-sys-color-on-error-container
Background
#fffbfe
--md-sys-color-background
On Background
#1c1b1f
--md-sys-color-on-background
Surface
#fffbfe
--md-sys-color-surface
On Surface
#1c1b1f
--md-sys-color-on-surface
CSS Custom Properties (Light Theme)
:root {
  --md-sys-color-primary: #6750a4;
  --md-sys-color-on-primary: #f0eef6;
  --md-sys-color-primary-container: #e1dced;
  --md-sys-color-on-primary-container: #483873;
  --md-sys-color-secondary: #744edb;
  --md-sys-color-on-secondary: #f1edfb;
  --md-sys-color-secondary-container: #e3dcf8;
  --md-sys-color-on-secondary-container: #513799;
  --md-sys-color-tertiary: #3488a5;
  --md-sys-color-on-tertiary: #ebf3f6;
  --md-sys-color-tertiary-container: #d6e7ed;
  --md-sys-color-on-tertiary-container: #245f73;
  --md-sys-color-error: #b3261e;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #f9dedc;
  --md-sys-color-on-error-container: #410e0b;
  --md-sys-color-background: #fffbfe;
  --md-sys-color-on-background: #1c1b1f;
  --md-sys-color-surface: #fffbfe;
  --md-sys-color-on-surface: #1c1b1f;
}

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/material-color-generator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Material Design Colors tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/material-color-generator -->
<a href="https://www.theutilbox.org/tools/material-color-generator">Material Design Colors by The Util Box</a>

Frequently Asked Questions about Material Design Colors

Material Color Generator — A Full Material 3 Token Set

This Material color generator turns one base colour into the twenty CSS custom properties that make up a Material Design 3 colour scheme — primary, secondary and tertiary with their on-colours and container colours, the error palette, and the background and surface pair. The output is ready to paste into a :root block.

A light and dark toggle switches the surface colours, and every token is shown as a swatch with its name and hex value.

The Twenty Tokens

Family Tokens
Primary primary, on-primary, primary-container, on-primary-container
Secondary secondary, on-secondary, secondary-container, on-secondary-container
Tertiary tertiary, on-tertiary, tertiary-container, on-tertiary-container
Error error, on-error, error-container, on-error-container
Surface background, on-background, surface, on-surface

The base colour becomes the primary. The on-primary and container colours are derived by tinting towards white or shading towards black, and the secondary and tertiary families are blended from fixed seed colours — #7c4dff for secondary and #00bfa5 for tertiary — so they always sit in a related but distinct position on the wheel.

Honest Limits

  • The dark toggle only changes the background and surface tokens. The primary, secondary and tertiary families are identical in both themes, which is not how Material 3 tonal palettes work — a real dark scheme re-tones the brand colours too.
  • The export is always a :root block, so light and dark cannot coexist on one page without editing the selector yourself.
  • The tints and shades are applied per RGB channel, which changes saturation as well as lightness. A saturated base colour comes out noticeably different from the tone Material's own palette algorithm would generate.
  • The readable-text check uses the BT.601 luma formula with a fixed threshold of 140 rather than a real contrast calculation, so a token can pass the label test and still fall short of WCAG.
  • Secondary and tertiary come from fixed seeds rather than being derived from your base colour, so they are not really tonal relatives of it.

Related Colour and Design Tools

The token set is generated locally in your browser; no colour is uploaded.