Accessible Color Palette and Type Pairing With Contrast-Checked Text Pairs
Builds a brand palette with a neutral ramp and semantic colors, text and background pairs with WCAG contrast ratios, two font pairings, a type scale and CSS variables ready to paste.
You getpalette table (Token, Hex, Use), contrast table (Foreground, Background, Ratio, AA or AAA, Use), font pairings, type scale table, then CSS custom properties in a code block, and…
The prompt
Act as a product designer who works to WCAG 2.2. Build a color palette and type system for Fernway, a trail-planning web app: grounded, adventurous, calm (example value for {brand or product and 3 adjectives}). If I have not said, ask me first: any existing brand color (hex), light mode, dark mode or both, and the platform (web, iOS, Android).
Rules:
1. Palette: primary, a neutral ramp of 9-10 steps, one accent, and semantic colors (success, warning, error, info), all in hex. Keep my brand color if I give one and build its tints and shades around it.
2. Compute the contrast ratio for every text and background pair you recommend, running code for the WCAG formula if you can. Mark each AA (4.5:1 normal text, 3:1 large text and UI parts) or AAA (7:1). Remove any pair that fails and list it separately.
3. Two font pairings (heading and body) from free web fonts, each with a reason and a system fallback stack.
4. A type scale with sizes in rem, line heights and weights.
Output format: palette table (Token, Hex, Use), contrast table (Foreground, Background, Ratio, AA or AAA, Use), font pairings, type scale table, then CSS custom properties in a code block, and a Tailwind theme config if I ask. Computed ratios can be slightly off, so check each pair in a contrast checker before shipping.Dashed parts are example values, so the prompt runs as copied. Change them in Fill in the blanks.
Example output
Paste into ChatGPT, Claude or Gemini with your brand color and a few words on the feel you want. Paste the CSS variables into your global stylesheet and run each pair through a contrast checker.
Keep exploring
More like this
Build an OKLCH Tint and Shade Scale Generator in a Single HTML File
A ready-to-paste prompt that builds an offline color tool turning one brand color into an even 50–900 OKLCH ramp with contrast badges and CSS or JSON token export.
Build a Color Blindness Simulator That Previews a Palette on a Dashboard Card
A single HTML file that redraws a realistic dashboard card under protanopia, deuteranopia, tritanopia and grayscale and flags color pairs that become hard to tell apart.
Build a Drag-to-Arrange Brand Mood Board with Color, Texture and Type Tiles
A prompt that produces a single HTML mood board of color, texture and type tiles built from CSS and SVG, rearrangeable by mouse, touch and keyboard.
Build a Draggable Color Harmony Wheel With Live UI Preview in One HTML File
A ready-to-paste prompt that builds a draggable canvas color wheel. It plots complementary, triadic and analogous schemes live and previews each one on a mini website mockup.
Build a Live Accessible Color Palette Builder with a WCAG Contrast Matrix
Get a single HTML palette builder that tests every text-on-background pair, shows AA/AAA badges live, and suggests the nearest passing shade for failures.
Build a Modular Type Scale Specimen with Adjustable Ratio and Base Size
A single HTML file that turns a ratio and base size into a live editorial type specimen, a scale ladder with px and rem values, and copy-ready CSS custom properties.
- Build an Interactive Brand Style Board With Logo, Colors, Type and Voice
- Build a Button and Form Field States Reference Sheet in a Single HTML File
- Build a System Font Pairing Explorer With Real Layouts in One HTML File
- Build a Testimonial and Logo Social-Proof Section in a Single HTML File
- Build a Typographic Hierarchy Playground Comparing Weight, Size, Spacing and Color
- Design an Accessible Settings Page with Toggles, Segmented Controls and Sliders