
Two Color Combinations: 18 Pairs With HEX Codes and Contrast Ratios
18 two-color combinations with HEX codes and computed contrast ratios. See which pairs are text-safe, which suit accents only, and which to avoid.
How to pick website colors, write CSS gradients, check contrast and work with color codes. Every guide links to a free tool so you can try it right away.

18 two-color combinations with HEX codes and computed contrast ratios. See which pairs are text-safe, which suit accents only, and which to avoid.

HEX, RGB and HSL describe the same screen colors in different ways. See one color in all three formats plus OKLCH, and when to use each for tokens and themes.

Learn linear-gradient CSS syntax, angles, color stops, hard stops and radial, conic and repeating gradients, with copy-ready code and readable text on color.

A good contrast ratio is at least 4.5:1 for body text and 3:1 for large text and UI parts under WCAG 2.2 AA. See the math, worked examples and common traps.

Learn how to build website color schemes: pick a base color, assign 60-30-10 roles, add a button accent, check WCAG contrast, and copy four HEX palettes.