Glass color palette

Create a glass color palette. This page gives you a ready-to-use color system, export code, and a live gradient preview — no design tools required.

glass color palette UI preview
glass color palette UI preview

Color palette

#fef7dc
Background 1
background
#fffbef
Surface 1
surface
#111827
Text Primary 1
text-primary
#7c7c78
Text Secondary 1
text-secondary
#FACC15
Primary 1
primary
#F97316
Secondary 1
secondary
#c8a311
Accent 1
accent

Glass color palette explained

The glass color palette pairs #FACC15 as its primary hue with #c8a311 as the accent. The palette is balanced for glass aesthetics while keeping text readable against the surface color.

Every swatch is derived from the same two anchor colors, so the color palette stays harmonious across backgrounds, borders, buttons, and hover states. Copy the CSS below or open it in your favorite tool and apply it immediately.

Use the preview image as a starting point for your own mockups. It shows the exact #FACC15 → #F97316 gradient applied to a phone screen, a primary button, and a wave pattern so you can see how the glass look plays out in a real interface.

Export code

/* CSS Custom Properties */
:root {
  --background: #fef7dc;
  --surface: #fffbef;
  --text-primary: #111827;
  --text-secondary: #7c7c78;
  --primary: #FACC15;
  --secondary: #F97316;
  --accent: #c8a311;
}

/* Tailwind CSS config (extend.colors) */
module.exports = {
  theme: {
    extend: {
      colors: {
        'background': '#fef7dc',
        'surface': '#fffbef',
        'text-primary': '#111827',
        'text-secondary': '#7c7c78',
        'primary': '#FACC15',
        'secondary': '#F97316',
        'accent': '#c8a311',
      }
    }
  }
};

Related color palettes