Skip to main content
Emailens
CSS Properties

rgb

CSS property · 12 supported, 8 partial, 0 unsupported across 21 clients

rgb splits the field: 12 full, 8 partial of 21 clients as of Oct 14, 2026, the partials (Gmail, Gmail Android, Gmail iOS) are where sends go wrong.

  • 4/7 webmail, 4/6 desktop, 4/8 mobile clients support rgb fully.
  • Partial in Gmail, Gmail Android, Gmail iOS, Outlook Classic and 4 more, behavior differs from browsers, test before relying on it.
  • Outlook Classic (Word engine, supported to at least 2029) does not fully support rgb, one of the few features its replacement actually fixes; see the deprecation diff.
  • Across all clients, only 6 of 298 tracked HTML/CSS features render identically everywhere.

Source: caniemail.com (MIT), via the Emailens engine. Last tested upstream May 14, 2021, synced by Emailens Oct 14, 2026.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebPartialSee caveat 1
Gmail AndroidmobileGmail MobilePartialSee caveat 1
Gmail iOSmobileGmail MobilePartialSee caveat 1
Outlook 365webmailOutlook WebSupported
Outlook (New)desktopOutlook WebSupported
Outlook ClassicdesktopMicrosoft WordPartialSee caveat 2
Outlook iOSmobileOutlook MobileSupported
Outlook AndroidmobileOutlook MobileSupported
Outlook for MacdesktopWebKitSupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooPartialSee caveat 3
Yahoo Mail AndroidmobileYahooPartialSee caveat 3
Yahoo Mail iOSmobileYahooPartialSee caveat 3
Samsung MailmobileSamsungSupported
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
Proton MailwebmailProtonSupported
AOL MailwebmailAOLPartialSee caveat 3
FastmailwebmailFastmailSupported
SuperhumandesktopBlinkUnknown

Documented caveats (3)

  1. 1.Gmail, Gmail Android, Gmail iOS: Whitespace syntax is not supported (rgb(0 128 0 / 1)). whitespace syntax (rgb(0 128 0)): when used in the style attribute of an element, the whole attribute is stripped. When used inside <style>, the whole <style> block is stripped.
  2. 2.Outlook Classic: Whitespace syntax is not supported (rgb(0 128 0 / 1)). Alpha value is not supported (rgb(0, 128, 0, 0.5)).
  3. 3.Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail: Whitespace syntax is not supported (rgb(0 128 0 / 1)).

Caveats recorded by caniemail.com (MIT) and carried verbatim, one entry per wording rather than per client.

Client-by-client behaviour for rgb

Fully supports rgb (12): Outlook 365, Outlook (New), Outlook iOS, Outlook Android, Outlook for Mac, Apple Mail, Apple Mail iOS, Samsung Mail, Thunderbird, HEY Mail, Proton Mail, Fastmail.

Partial support (8): Gmail, Gmail Android, Gmail iOS, Outlook Classic, Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail. Expect rendering quirks unique to each engine. Partial support typically means a subset of values, an ignored shorthand, or sanitizer-specific rewrites.

Behaviour unverified in: Superhuman.

Fixes & Workarounds

Gmail

Partial

"rgb" is not supported in this email client.

Gmail Android

Partial

"rgb" is not supported in this email client.

Gmail iOS

Partial

"rgb" is not supported in this email client.

Outlook Classic

Partial

"rgb" is not supported in this email client.

Yahoo Mail

Partial

"rgb" is not supported in this email client.

Yahoo Mail Android

Partial

"rgb" is not supported in this email client.

Yahoo Mail iOS

Partial

"rgb" is not supported in this email client.

AOL Mail

Partial

"rgb" is not supported in this email client.

Related Features

Check your own HTML for rgb

Paste your own, or run the sample below. Analyzed in this page, with no signup and nothing stored.

Zero-Friction Engine Preview

Test your rgb layout across 21 email clients

Preview rendering, catch CSS issues, and see how rgb displays across Outlook, Gmail, and Apple Mail. Free, no account needed.

Instant live preview · No signup required · 21 email engines

Last tested upstream: · Last synced by Emailens:

caniemail.com (MIT) records May 14, 2021 as the last time rgb was tested in a real client, 5 years before this sync. Syncing copies that result forward, it does not re-test it. Carried in @emailens/engine data v0.14.5.