A video decoder arranged to decode and output a set of temporally successive high dynamic range images (Im_RHDR) from coded input images which are a set of encoded low dynamic range images (Im_COD) which are in a format wherein pixel colors are represented by luma values (Y'4L) and chrominance values (C'bOL, C'r0L), the chrominance values (C'bOL, C'r0L) being sub-sampled spatially compared to the luma values (Y'4L), the video decoder comprising: - a video decoder arranged to decode the encoded low dynamic range images into uncoded low dynamic range images (Im_RLDR); - a first and second spatial upscaler (501, 502) arranged to upscale chrominance values of the low dynamic range images (Im_RLDR) to a resolution of the luma values; - a color convertor arranged to, for each pixel of the low dynamic range images (Im_RLDR), convert the luma value and chrominance values into a non-linear R'G'B' representation (R'4, G'4, B'4) comprising three non-linear R'G'B' color values; - a maximum calculation unit arranged to output, for each pixel, a maximum (m) of the three non-linear R'G'B' color values; - a luminance mapping unit arranged to receive a luminance mapping function which defines a relationship between luminances or lumas of one of the low dynamic range input images (Im_RLDR) being processed to luminances respectively lumas of the corresponding high dynamic range output image (Im_RHDR) to be obtained, and arranged to, for each pixel, apply the luminance mapping function to the maximum (m), yielding an output maximum (m*); - a gain factor calculator arranged to, for each pixel obtain a gain value (g) by dividing the output maximum (m*) by the maximum (m); - a first and second spatial downscaler (507, 508) arranged to spatially downscale the calculated gain values to a resolution of the chrominance values of the low dynamic range images; and - multipliers (509, 510, 511) arranged to, for each pixel, multiply the luma value and chrominance values (C'bOL, C'r0L) of the uncoded low dynamic range input image (Im_RLDR) being processed, comprising multiplication by the per pixel gain value (g) for the luma value, respectively multiplication by spatially downscaled gain values (gs) for the chrominance values, wherein the first and second spatial upscaler (501, 502) are coordinated to be the same as those used in the video encoder which encoded the high dynamic range images as a set of encoded low dynamic range images (Im_COD). - a video decoder arranged to decode the encoded low dynamic range images into uncoded low dynamic range images (Im_RLDR); - a first and second spatial upscaler (501, 502) arranged to upscale chrominance values of the low dynamic range images (Im_RLDR) to a resolution of the luma values; - a color convertor arranged to, for each pixel of the low dynamic range images (Im_RLDR), convert the luma value and chrominance values into a non-linear R'G'B' representation (R'4, G'4, B'4) comprising three non-linear R'G'B' color values; - a maximum calculation unit arranged to output, for each pixel, a maximum (m) of the three non-linear R'G'B' color values; - a luminance mapping unit arranged to receive a luminance mapping function which defines a relationship between luminances or lumas of one of the low dynamic range input images (Im_RLDR) being processed to luminances respectively lumas of the corresponding high dynamic range output image (Im_RHDR) to be obtained, and arranged to, for each pixel, apply the luminance mapping function to the maximum (m), yielding an output maximum (m*); - a gain factor calculator arranged to, for each pixel obtain a gain value (g) by dividing the output maximum (m*) by the maximum (m); - a first and second spatial downscaler (507, 508) arranged to spatially downscale the calculated gain values to a resolution of the chrominance values of the low dynamic range images; and - multipliers (509, 510, 511) arranged to, for each pixel, multiply the luma value and chrominance values (C'bOL, C'r0L) of the uncoded low dynamic range input image (Im_RLDR) being processed, comprising multiplication by the per pixel gain value (g) for the luma value, respectively multiplication by spatially downscaled gain values (gs) for the chrominance values,