Skip to content
Aback Tools Logo

Color in Email Design Reference

Comprehensive guide to 13 CSS color formats across 12 email clients. Check which formats are safe for each client, learn best practices, and avoid common email rendering pitfalls. From Gmail to Outlook Desktop - know exactly which colours work where.

Color in Email Design Reference
Comprehensive guide to which color formats work across email clients. Check compatibility, safety ratings, and best practices for email development.

Quick Compatibility Reference

FormatExampleGmailOutlookApple MailYahooSafety
HEXcolor: #FF6600;✓ Safe
Short HEXcolor: #F60;✓ Safe
RGBcolor: rgb(255, 102, 0);~ Mostly Safe
RGBAcolor: rgba(255, 102, 0, 0.5);! Caution
HSLcolor: hsl(24, 100%, 50%);! Caution
HSLAcolor: hsla(24, 100%, 50%, 0.5);✗ Avoid
Named Colorscolor: orange;~ Mostly Safe
currentColorborder-color: currentColor;! Caution
CSS Custom Propertiescolor: var(--color-primary);✗ Avoid

Color Format Reference

13 formats

HEX (#RRGGBB)

#FF6600
✓ Safe

Standard 6-digit hexadecimal color notation. The universal standard for email.

color: #FF6600;

HEX codes are the most widely supported color format across all email clients. Every major client renders 6-digit HEX correctly. This is the gold standard for email color values.

Short HEX (#RGB)

#F60
✓ Safe

3-digit shorthand hexadecimal notation.

color: #F60;

Short HEX is universally supported but limited to 4096 colours (one nibble per channel). Use for simple colours where #RGB equals #RRGGBB (e.g., #FFF, #000, #F00). Prefer full 6-digit for precision.

HEX8 (#RRGGBBAA)

#FF660080
✗ Avoid

8-digit hex with alpha channel. NOT safe for email.

color: #FF660080;

8-digit HEX with alpha is not supported in Outlook Desktop, Gmail, or Yahoo. Most email developers should avoid it entirely. Use a solid HEX fallback instead.

RGB()

rgb(255, 102, 0)
~ Mostly Safe

RGB functional notation. Widely supported in email.

color: rgb(255, 102, 0);

RGB() is supported by most email clients except older versions of Outlook Desktop. It's a good alternative when you need to programmatically adjust colour values. Always include a HEX fallback.

RGBA()

rgba(255, 102, 0, 0.5)
! Caution

RGB with alpha transparency. Not supported in major clients.

color: rgba(255, 102, 0, 0.5);

RGBA is not supported in Gmail, Yahoo, or Outlook Desktop. Apple Mail supports it well. Use only for progressive enhancement with a solid HEX fallback for the base colour.

HSL()

hsl(24, 100%, 50%)
! Caution

Hue-Saturation-Lightness notation. Support varies.

color: hsl(24, 100%, 50%);

HSL works in Apple Mail, Outlook.com, Samsung Email, and the new Outlook 365. It does NOT work in Gmail, Yahoo, or classic Outlook Desktop. Use for non-critical styling with HEX fallbacks.

HSLA()

hsla(24, 100%, 50%, 0.5)
✗ Avoid

HSL with alpha transparency. Very limited support.

color: hsla(24, 100%, 50%, 0.5);

HSLA inherits all the limitations of HSL plus the alpha channel issues of RGBA. Only works in Apple Mail and a few niche clients. Avoid in production email.

HWB()

hwb(24, 0%, 0%)
✗ Avoid

Hue-Whiteness-Blackness. Not supported in email.

color: hwb(24, 0%, 0%);

HWB is a newer CSS Color Level 4 format. No major email client supports it. Avoid entirely for email development.

OKLCH()

oklch(0.62, 0.15, 24)
✗ Avoid

Perceptually uniform colour space. Not supported in email.

color: oklch(0.62, 0.15, 24);

OKLCH is a modern CSS Color Level 4 format. Not supported in any email client. Use only for tooling and pre-processing, never in email CSS.

LAB / LCH()

lab(62%, 35, 45)
✗ Avoid

CIE Lab colour space. Not supported in email.

color: lab(62%, 35, 45);

CIE Lab and LCH are advanced colour spaces not supported in email clients. Avoid for email output.

Named Colors

orange
~ Mostly Safe

CSS named colours like red, blue, orange, etc. Mixed support.

color: orange;

Basic named colours (red, blue, green, black, white, orange, etc.) are widely supported. Obscure named colours (like rebeccapurple, burlywood) may not render in older email clients. Stick to the 16 basic HTML colour names for safety.

currentColor

currentColor
! Caution

Inherits the current text colour. Support varies.

border-color: currentColor;

currentColor works in Apple Mail and Outlook.com but fails in Gmail and Outlook Desktop. Useful for borders and SVG fills in email, but always provide explicit colour fallbacks.

CSS Custom Properties

var(--color-primary)
✗ Avoid

CSS variables. NOT supported in email.

color: var(--color-primary);

CSS custom properties (CSS variables) are not supported in any major email client. Gmail, Outlook, and Yahoo all strip or ignore them. Never use CSS variables in production email - always use static colour values.

Email Color Safety Tips

Always Use HEX as Your Primary Format

CRITICAL

6-digit HEX codes (#RRGGBB) are the only format guaranteed to render correctly across all email clients. When using modern formats like HSL or RGBA, always provide a HEX fallback as the first declaration.

format

Inline Styles Override Everything

CRITICAL

Many email clients (Gmail, Yahoo, Outlook) strip or ignore <style> blocks. Always inline your colour declarations using the style attribute. Use tools like Juice or CSS inliner for automated conversion.

format

Never Use CSS Custom Properties

CRITICAL

CSS variables (var(--color)) look modern but are completely unsupported across all major email clients. Gmail and Outlook both strip them silently, leaving your email without colour. Always hardcode colour values.

format

Provide Outlook Desktop Fallbacks

Important

Outlook Desktop uses Word's rendering engine and ignores many modern CSS properties. Use conditional comments <!--[if mso]> for Outlook-specific colour overrides. Wrap modern styles in <!--[if !mso]><!-->

fallback

Maintain WCAG Contrast in Email

Important

Email accessibility matters. Ensure your text colours have at least 4.5:1 contrast ratio against backgrounds. Remember that email clients may strip your custom CSS in certain contexts, so test critical colour pairs.

accessibility

Test in Gmail First, Outlook Second

Important

Gmail is the most restrictive major client with 30%+ market share. If your colours work in Gmail, they'll work almost everywhere. Outlook Desktop is the second most important test target due to its unique rendering engine.

testing

Don't Rely on Default Link Colors

Important

Email clients often override link colours with their own defaults. Always set explicit colour and text-decoration on your <a> tags inline. Include :visited and :hover states in <style> for clients that support them.

accessibility

Prepare for Dark Mode

Good to Know

Many email clients now auto-invert colours in dark mode. Use <meta name="color-scheme" content="light dark"> and provide dark mode colour overrides using @media (prefers-color-scheme: dark) in a <style> block for supporting clients.

testing

Gradient Backgrounds Need Fallbacks

Important

CSS gradients in background colours work in Apple Mail and Outlook.com but fail in Gmail and Outlook Desktop. Always set a solid background-color before your gradient declaration. The solid colour will show in non-supporting clients.

fallback

Use Bulletproof Backgrounds for Buttons

Good to Know

For CTA buttons in email, use VML (Vector Markup Language) for Outlook Desktop backgrounds and standard CSS for other clients. This technique ensures buttons have the correct colour in all email environments.

fallback

Email Client Color Support

12 clients

Your Email Color Reference Guide

Everything you need to choose the right colour format for every email client.

Client-by-Client Compatibility
Detailed support matrix for 12 email clients including Gmail, Outlook, Apple Mail, Yahoo, and more. See exactly which colour formats work in each client with clear supported/unsupported indicators.
13 Color Formats Analyzed
Every CSS colour format from HEX to OKLCH is rated for email safety. Each format includes syntax examples, support level, safety rating, and a plain-English explanation of why it does or doesn't work in email.
10 Critical Safety Tips
Actionable best practices organised by importance - from critical rules (always use HEX, never CSS variables) to advanced techniques (dark mode, bulletproof backgrounds). Each tip includes category tags for easy filtering.
Free & Always Available
This reference guide is completely free with no signup required. Bookmark it for your daily email development workflow - all data is local and loads instantly with no external dependencies.

Who Uses the Email Color Reference?

From email developers to QA engineers - colour safety for everyone.

Email Developer Workflow
Email developers use this reference daily to check which colour formats are safe before coding campaigns. The quick compatibility table provides instant answers for the five most common email clients.
Email Marketing Campaigns
Marketing teams use the guide to ensure their branded colours render consistently across all subscriber email clients. The safety tips help avoid common pitfalls like broken gradients or invisible buttons.
Design-to-Email Handoff
Designers use the color format reference to understand which colours from their designs will survive the email rendering process, making the handoff to development smoother with fewer surprises.
Email Template Development
Template developers reference the client-specific details to build robust templates with appropriate fallbacks for Outlook Desktop, Gmail, and other restrictive clients.
Learning Email Development
Students and junior developers use the guide to learn the fundamentals of email CSS - which colour formats are safe, why certain clients behave differently, and how to build bulletproof email styles.
Accessibility & QA Testing
QA engineers use the reference to verify that colour choices meet accessibility standards and will render correctly in the email clients their subscribers use most frequently.

About Color in Email Design

Understanding colour support in email clients is essential for every email developer.

What Is the Color in Email Design Reference?

The Color in Email Design Reference is a comprehensive guide for email developers and designers that documents which CSS colour formats work across different email clients. It covers 13 colour formats from basic HEX codes to modern OKLCH, rated for safety across 12 email clients including Gmail, Outlook (web and desktop), Apple Mail, Yahoo, and more. Each format includes syntax examples, support levels, and plain-English explanations.

How to Use This Reference

Start with the Quick Compatibility Reference table at the top for a birds-eye view of which formats work in major clients. Then dive into the Color Format Reference cards for detailed information on each format, including safety ratings and example code. The Safety Tips section provides actionable best practices organised by importance level. Finally, expand individual Email Client Cards to see the full support matrix for each client with specific recommendations.

Why Email Color Support Is Different

Unlike web browsers that all support modern CSS colour formats, email clients vary dramatically in their rendering engines. Gmail and Yahoo use browser-based rendering but strip <style> blocks and ignore many modern CSS properties. Outlook Desktop uses Microsoft Word's rendering engine, which has very limited CSS support. Apple Mail uses WebKit with excellent CSS support. Understanding these differences is critical for building email campaigns that look correct everywhere.

Best Practice for Email Color Safety

The golden rule of email colour is simple: always use 6-digit HEX codes (#RRGGBB) as your primary colour format and always inline your styles. If you use modern formats like HSL or RGBA, always provide a HEX fallback first. Never use CSS custom properties. For Outlook Desktop, use conditional comments to provide VML-based colour fallbacks. Test in Gmail and Outlook Desktop before sending to your full list.

Related Color Tools

Explore more colour reference and accessibility tools.

Frequently Asked Questions

Common questions about using colour in email design.

Gmail strips <style> blocks and processes inline styles through a sanitization layer that only allows a subset of CSS properties and values. This is a security and consistency measure. RGBA, HSL, and other modern formats are not on Gmail's allowed list. Always use 6-digit HEX codes for Gmail compatibility.

6-digit hexadecimal (#RRGGBB) is the safest and most universally supported colour format across all email clients. Every major client - including Gmail, Outlook (both web and desktop), Apple Mail, and Yahoo - renders HEX codes correctly when applied inline.

Yes. Outlook Desktop (2010, 2013, 2016, 2019, and Microsoft 365) uses Microsoft Word's rendering engine rather than a web browser. This means it has very limited CSS support - no RGBA, no HSL, no CSS gradients, and no box shadows. This is why Outlook Desktop requires special handling in email development.

HSL works in Apple Mail, Outlook.com (web), Samsung Email, and the new Chromium-based Outlook 365. It does NOT work in Gmail, Yahoo, AOL, GMX, or classic Outlook Desktop. You can use HSL as a progressive enhancement if you always provide a HEX fallback as the first declaration.

No. CSS custom properties (var(--color)) are not supported in any major email client. Gmail and Outlook both strip them silently, which means your colours will simply disappear. Never use CSS variables in production email - always hardcode your colour values.

HEX (#RRGGBB) is 6 digits and represents solid colours without transparency. HEX8 (#RRGGBBAA) is 8 digits and includes an alpha channel for transparency. HEX8 is not supported in Gmail, Outlook Desktop, or Yahoo. Stick to standard 6-digit HEX for email. If you need transparency effects, use a solid fallback colour.

Use <meta name="color-scheme" content="light dark"> in your <head> to signal dark mode support. Then use @media (prefers-color-scheme: dark) in a <style> block to provide dark mode colour overrides. For clients that strip <style> blocks, this won't work - in those clients, accept that colours may be auto-inverted.

Yes. As email clients update their rendering engines (for example, Outlook 365 moving to Chromium), we update the compatibility data. The reference is maintained to reflect the current state of email client colour support. Bookmark it and check back as email client capabilities continue to improve.