Product10/17/2026·5 min read

Exporting a Colour Palette Image: P3 vs sRGB, PNG vs JPEG

Saving a colour palette as an image: when Display P3 beats sRGB, why PNG keeps flat swatches exact, and what happens to a P3 file in apps that only know sRGB.

Save a colour palette as a PNG with its colour profile embedded. Use sRGB when the image will travel to unknown apps, websites or printers, and Display P3 only when the palette holds colours sRGB cannot show and the people viewing it have wide-gamut screens. PNG is lossless, so flat swatches and hard edges stay exactly as rendered, while JPEG and HEIC soften the boundaries between swatches. Whatever the format, send the HEX values as text too, because the pixels are the part most likely to change on the way.

How much bigger is Display P3 than sRGB?

The two spaces differ only in two of their three primaries. The CSS Color Module Level 4 lists both: they share the D65 white point and the same transfer curve, and Display P3 pushes red and green further out.

sRGB (x, y)Display P3 (x, y)
Red primary0.640, 0.3300.680, 0.320
Green primary0.300, 0.6000.265, 0.690
Blue primary0.150, 0.0600.150, 0.060
White pointD65D65

Every quoted percentage for the difference is a choice of measure. WebKit's 2016 post on improving colour on the web called Display P3 "about 25% wider than sRGB", then added that P3 has a volume of about 1.2 million CIELAB units against roughly 0.8 million for sRGB, about 50% more. Computed from the primaries above, the P3 triangle has about 36% more area on the CIE 1931 xy chart and about 26% more on the more even u′v′ chart. All of these are correct; they measure different things.

The practical reading is narrower: the extra colours are saturated reds, oranges, greens and cyans. A palette of beiges, greys and dusty mid-tones barely uses them.

What does an embedded colour profile actually do?

The numbers in an image file do not describe a colour until something says which space they belong to. Apple's Human Interface Guidelines on colour put it this way: an image embeds its colour profile so that a device can interpret its colours correctly. The same triplet, 255, 0, 0, is a less saturated red in sRGB than in Display P3.

Each format carries that description differently. The JPEG standard itself, ITU-T T.81, leaves colour space outside its scope, so the International Color Consortium defines how a profile is embedded in JPEG in an annex of its own specification. PNG defines its own chunks. The PNG Third Edition, a W3C Recommendation since 24 June 2025, ranks them: a cICP chunk takes precedence, then an embedded ICC profile in iCCP, then the sRGB chunk, then gAMA and cHRM.

When no profile is present, the default is sRGB. The original sRGB proposal said so in one line, an image with no ICC profile is assumed to be sRGB, and WebKit's colour post states that it assumes sRGB for untagged images. That default is harmless for an sRGB palette and destructive for a P3 one.

Which file format keeps flat colour exact?

A palette image is mostly flat areas with hard edges between them, plus small text. That is the content lossy codecs handle worst.

FormatCompressionWhat happens to swatches and edgesProfileUse it for
PNGLosslessPixels stay exactly as rendered; flat areas compress welliCCP, sRGB or cICP chunkPalettes, colour cards, design handoff
JPEGLossy DCT on 8 × 8 blocksRinging and blotches along hard edges and around textICC profile, embedded as the ICC specification definesPhotos and quick sharing
HEICLossy HEVCSmaller files, but still lossy at edgesWide colour supportedSharing between Apple devices

Apple's WWDC 2017 session on the High Efficiency Image File Format explains that iPhone HEIC files are HEIF containers compressed with HEVC, at an average of about half the size of a JPEG of the same visual quality. Outside Apple devices that efficiency costs compatibility: Apple says photos may be sent as JPEG when the receiving device does not support HEIF. Apple's own guidance for wide-colour artwork is to use the Display P3 profile at 16 bits per channel and export PNG.

Where does a P3 image actually look like P3?

Two conditions have to hold at once: a display that covers the P3 gamut and an app that reads the profile. Apple's wide-colour displays meet the first; WebKit says it colour-matches all images on iOS and macOS, which covers the second for Safari.

On the web you can test both. The color() function accepts display-p3 and has been available across major browsers since May 2023, and the color-gamut media feature matches p3 only when the browser and the output device together reach roughly the P3 gamut:

.srgb-red { background: #ff0000; }
.p3-red { background: #ff0000; }
@media (color-gamut: p3) {
  .p3-red { background: color(display-p3 1 0 0); }
}

Put the two swatches side by side. On a P3 display the second is visibly more intense; on an sRGB display the media query does not match and both stay #ff0000, which tells you the extra range is not reaching the viewer. On a Mac you can switch the display profile in System Settings, Displays, to preview the sRGB case.

What happens when a P3 image lands somewhere that only knows sRGB?

The outcome depends on whether the destination keeps and honours the profile. There are three common cases, and only one of them is safe.

Destination behaviourWhat the viewer seesHow to protect the palette
Reads the profile, shows on an sRGB screenIn-gamut colours unchanged; the most saturated ones mapped inward, and near-identical P3 colours may mergeAvoid relying on two swatches that differ only in P3 range
Strips the profileP3 numbers read as sRGB, so every colour looks dullerExport sRGB for unknown destinations
Recompresses the uploadSwatch edges and text pick up JPEG artefactsSend the PNG as a file, plus the HEX values as text

The first case follows the CSS rule that gamut mapping keeps colours inside the destination gamut unchanged, and Apple's guidelines add that P3 gradients can look clipped on sRGB displays. The second case is the one that surprises people. The rust #B85C38, written into a P3 file, is stored as about 172, 97, 64, which is #AC6140. Strip the profile and a viewer sees exactly that: a darker, flatter rust. Nothing in the file says anything went wrong.

If the palette was built from a photo, its values were most likely sRGB to begin with; why the HEX codes from a photo vary covers where those numbers come from, and building the palette before you export it covers roles and contrast.

Tinta's export options, and what they mean for these choices

Tinta renders a palette card on the iPhone and exports it in three tiers sized by the long edge: JPEG at 2048 pixels on the free tier, then JPEG at 3840 pixels and a lossless PNG of up to 6144 pixels with a Pro subscription. The export sheet also has a "P3 Wide Gamut + ICC Profile" option and six aspect ratios: 3:4, 1:1, 4:3, 16:9, 9:16 and 1.91:1. The full list, with which mounts carry a badge, is in Tinta's export sizes, P3 and free-tier watermark.

The watermark rule is specific. Four mount styles, Empty Margin, Spread, Reserve and Plate, are free and never carry it. Four limited-free styles, Develop, Stub, Ladder and Diptych, export with a small "Made with Tinta" badge on the free tier, and Pro can remove it. The remaining ten styles need Pro.

Two honest limits follow from the rest of this article. Tinta's swatch values are 8-bit sRGB HEX codes, so a P3 export cannot make the swatches themselves more saturated; what a wide-gamut card can preserve is the photo's own colour. And for print, divide pixels by pixels per inch: at the common 300 ppi target, 2048 pixels covers about 6.8 inches on the long edge, 3840 about 12.8 and 6144 about 20.5. A larger print at that density needs more pixels than Tinta exports. If you want to try the export tiers yourself, Tinta is on the App Store.

Which export should you choose?

Pick by destination, not by maximum quality. The safest default is the one that survives being handled by software you do not control.

DestinationFormatColour spaceAlso send
Website, app UI or developer handoffPNGsRGBHEX list as text
Social postPNG, or JPEG if it will be recompressed anywaysRGBNothing; the platform owns the file
Designer working on wide-gamut Apple hardwarePNGDisplay P3, profile embeddedHEX and P3 values
Print shop or photo labWhatever they ask forAsk; if they cannot say, sRGBA printed proof request
Your own archivePNG at the largest sizeThe original spaceThe source photo

Choose P3 only when someone on the receiving end can see the difference and the file will arrive with its profile intact. Otherwise, sRGB in a PNG is the export that looks the same everywhere.

Frequently asked questions

Should I save a colour palette as PNG or JPEG?
PNG. It is lossless, so every swatch keeps exactly the value it was rendered with, and large flat areas compress well. JPEG works on 8 × 8 blocks with lossy compression, which produces faint ringing and blotches along the hard edges between swatches and around text. Keep JPEG for photos, or for platforms that will recompress the upload anyway.
Does a Display P3 image look wrong on an sRGB screen?
Usually not, if the app is colour-managed and the profile is embedded. Colours that fit inside sRGB are shown unchanged and the rest are mapped into the sRGB range. Apple notes that two very similar P3 colours can become hard to tell apart on an sRGB display, and that P3 gradients can look clipped.
What is an ICC colour profile in an image file?
It is the description that tells software what the pixel numbers mean: which red, green and blue primaries, which white point and which tone curve. The same three numbers are a different colour in sRGB and in Display P3. PNG stores the profile in its own chunks, and JPEG carries it in the way the ICC specification defines for that format.
How do I check if a screen or browser can show P3 colours?
In CSS, the media query @media (color-gamut: p3) matches only when the browser and display together cover roughly the Display P3 gamut, and color(display-p3 r g b) lets you specify a P3 colour. Both have been supported across major browsers since 2023. Put a P3 red next to #FF0000; on a P3 display the P3 one looks more saturated.
Is HEIC a good format for saving a colour palette?
Not for sharing. HEIC uses HEVC compression, which Apple says averages about half the size of a JPEG at the same visual quality, but it is still lossy at the hard edges a palette is made of. Apple also notes that photos may be sent as JPEG when the receiving device cannot handle HEIF, so the recipient may never see the HEIC at all.

Products in this post

Keep reading