The hexcolors blog
Practical, no-fluff guides on color for designers and developers.
How to choose colors for your website, step by step
A practical process for picking a palette that looks professional, stays readable and fits your audience.
More articles
hexcolors Color of the Year 2026: Tidewater
Why our editors picked a deep blue-green for 2026, how it performs for readability, and how to use it.
How to use custom hex colors in Tailwind CSS
One-off colors, theme colors and a full 50 to 950 scale built from a single hex code.
How to build an accessible color palette from scratch
Design for contrast first, then pick colors, so every approved pair is readable.
How to build a brand color system that scales
Primary, secondary, neutrals and status colors, and how to document them so a team can use them.
How to add opacity to a hex color in CSS
Use 8-digit hex, rgb with alpha or color-mix, with a full opacity-to-hex table.
Designing for color blindness: a practical guide
How the main types of color vision deficiency work and how to design interfaces that stay clear.
Design tokens for color: how to name and organize them
Primitive, semantic and component tokens explained, with CSS variable examples and dark mode.
WCAG contrast ratio explained, with the math
How contrast ratio is calculated, what the AA and AAA thresholds mean, and a worked example.
How to choose colors for charts and data visualization
Categorical, sequential and diverging palettes, and how to keep charts readable for everyone.
Hex vs RGB vs HSL: which color format should you use?
When to write colors as hex, RGB, HSL or OKLCH in CSS, and why it matters.
RGB vs CMYK: why screen and print colors differ
How additive and subtractive color mixing work and what to do when you design for both.
What is a hex color code?
A plain explanation of hex color codes, how they work, and how to read them.
How to convert hex to RGB (and back)
Step-by-step hex to RGB conversion with a worked example.
Choosing accessible text colors
How contrast ratios work and which WCAG levels your text colors should meet.
Color theory basics
Hue, saturation, lightness and the color wheel in plain language.
How to pick a color palette
A simple method for building a balanced palette for a website or brand.
Choosing colors for dark mode
Practical rules for dark interfaces that stay readable and comfortable.
Color psychology in branding
What colors tend to signal, and why context matters more than rules.
Colors that go with blue
Pairings for blue that look good and stay accessible.