AVIF Color Spaces and Transfer Functions Explained

The AV1 Image File Format (AVIF) offers robust color management for modern digital imaging, natively accommodating both standard dynamic range (SDR) and high dynamic range (HDR) workflows. This guide breaks down the specific color spaces (color primaries) and transfer functions natively supported within the AVIF specification. By utilizing the ISO Base Media File Format (ISOBMFF) colr box alongside AV1 bitstream metadata, AVIF supports precise color rendering through either NCLX (Non-Centric Learning Extended / ISO/IEC 23091-2 / ITU-T H.273) parameters or embedded ICC profiles.

Color Signalling in AVIF

AVIF signals color representation natively in two primary ways:

  1. NCLX Properties (ITU-T H.273 Codecs): A compact, standardized set of integer identifiers indicating the exact color primaries, transfer characteristics, and matrix coefficients. This method is preferred for web performance because it avoids the byte-overhead of full ICC profiles.
  2. Embedded ICC Profiles: Used for custom, legacy, or device-specific profiles, allowing AVIF to support any arbitrary color profile compatible with ICC version 2 or version 4 specifications.

Natively Supported Color Spaces (Color Primaries)

Through ITU-T H.273 parameters defined within the NCLX property, AVIF natively supports the following color primaries without requiring external color transformation profiles:


Natively Supported Transfer Functions (Transfer Characteristics)

AVIF natively recognizes gamma and electro-optical transfer functions (EOTF) through the H.273 transfer characteristic code points:


Matrix Coefficients and Color Formats

AVIF supports both full and limited range signals across multiple chroma formats: