A little color knowledge goes a long way

Field notes.

Practical ideas for choosing colors, giving them purpose, and making sure the words stay readable.

Palettes in practice

See how the same palette works on a real layout in light and dark.

The fundamentals

Give every color a job. ↗

Turn a five-color palette into a useful website system, with explicit roles, a worked example, contrast checks and CSS tokens.

Methodology

What a contrast ratio actually tells you. ↗

Understand how we calculate WCAG 2.2 contrast, normal and large text thresholds, exact pass/fail decisions and what the tool cannot verify.

Working with dark color

Build a dark palette with intention. ↗

Use a worked dark website palette to choose backgrounds, surfaces, readable text and button labels. Includes exact contrast examples and common mistakes.

Working with light color

Soft colors. Clear words. ↗

Use pastel fills without losing readable text. A worked Rosewater palette shows which roles suit pale colors and which pairings need a darker anchor.

Troubleshooting

Keep the color. Fix the pairing. ↗

A practical workflow for failing text contrast: identify the pair, change its role, adjust the foreground and verify the actual exported hex color.

A complete worked example

One brand. Two considered themes. ↗

Keep a fixed brand hex while building light and dark website tokens. A worked #6750A4 example with actual contrast checks, repair tradeoffs and paired-theme CSS.

Color beyond contrast

Make meaning survive a color change. ↗

Inspect website colors under protanopia, deuteranopia, tritanopia and grayscale. Understand the model, compare actual UI roles, and keep meaning visible without color.

From image to interface

From an image to two working themes. ↗

Extract colors from a photo, logo or screenshot in your browser. Choose an exact sampled starting color, build light and dark themes, check contrast and export tokens.

From palette to project

Make the handoff as exact as the colors. ↗

Choose the right website palette export. Keep paired CSS, Tailwind v4, structured DTCG 2025.10 tokens, editable project backups and contrast evidence distinct.

Color relationships

Give a harmony a purpose. ↗

Compare analogous, complementary, split, triadic and monochromatic color schemes with practical website examples and an interactive color wheel.

Product systems

Make status colors mean something. ↗

Build clear status messages in both themes with explicit labels, measured contrast, custom roles and editable color scales. Includes a worked error-message example.

Charts

Chart color palettes for categories, ranges and change ↗

Choose a color system that reflects the data. Label categories and keep the meaningful midpoint visible when the display changes.

Accessibility

Readable text over photos and gradients ↗

A background image can change underneath the same text when the viewport narrows. Design and check the worst supported case.

Accessibility

Checking transparent colors and overlays ↗

Calculate contrast after the color layers have been combined. Use the actual canvas and keep text opacity separate from its panel.

Interface design

Color for hover, active, focus and disabled states ↗

Treat each state as a separate pairing. Design for keyboard, touch and mouse before choosing how much a color should change.

Color scales

How to build a usable tint and shade scale ↗

Start at the extremes, anchor a brand color, and choose intermediate steps around the roles the interface needs.

Color formats

HEX, RGB, HSL and OKLCH in a web workflow ↗

Use a format suited to the edit or handoff, and check the same rendered pair after conversion.

Brand color

How to keep a brand color that fails text contrast ↗

Keep the approved brand swatch in the project and choose a reading or action role that fits the actual surface.

Palette design

Choosing warm and cool neutral colors ↗

Compare near-neutrals beside the material, photography and action color they will frame.

Palette design

Creating hierarchy with a monochrome palette ↗

Build a design from one hue by changing the lightness, chroma and amount of color assigned to each role.

Art direction

Coordinating photography, typography and color ↗

Choose an image, a reading treatment and a palette together, then test them on content that will actually recur.

Implementation

Applying a palette to Tailwind v4 and shadcn/ui ↗

Transfer semantic colors and their foregrounds together, then check a form and a dialog in both modes.

Production

Taking a digital palette to print ↗

Carry the design intent from the screen into a print proof with the paper, process and color profile specified.