Default color space causes reduced contrast and lost detail in light tones
Problem
Videos rendered without --color-space=bt709 lose contrast between similar light colors when viewed in VLC. White elements (#ffffff) blend into off-white backgrounds (#faf9f7), subtle borders and shadows disappear, and colors appear slightly desaturated.
What to look for
- The card (#ffffff) should be clearly distinct from the background (#faf9f7). In the default render they blend together
- The card border and shadow should be visible. In the default render they disappear
- Button colors should be vivid. In the default render they are slightly muted
Metadata difference
Default render:
pix_fmt: yuvj420p
color_range: pc
color_space: bt470bg
With --color-space=bt709:
pix_fmt: yuv420p
color_range: tv
color_space: bt709
Reproduction
Repro.tsx:
import { AbsoluteFill, Composition, registerRoot } from "remotion";
const Demo: React.FC = () => (
<AbsoluteFill
style={{
backgroundColor: "#faf9f7",
justifyContent: "center",
alignItems: "center",
fontFamily: "sans-serif",
}}
>
<div
style={{
width: 800,
backgroundColor: "#ffffff",
borderRadius: 16,
padding: "48px 56px",
boxShadow: "0 8px 40px rgba(0,0,0,0.08), 0 0 0 1px #e8e6e1",
}}
>
<h2 style={{ fontSize: 32, fontWeight: 700, color: "#1e293b", marginBottom: 16 }}>
Color Space Test
</h2>
<p style={{ fontSize: 20, color: "#64748b", lineHeight: 1.6 }}>
This card has a warm off-white background (#faf9f7), a white card (#ffffff),
and subtle borders (#e8e6e1). Without --color-space=bt709, these nearly-identical
light tones collapse, borders disappear, and colors lose contrast.
</p>
<div style={{ display: "flex", gap: 12, marginTop: 24 }}>
<div style={{ padding: "12px 24px", borderRadius: 8, backgroundColor: "#008060", color: "white", fontSize: 18, fontWeight: 600 }}>
Green Button
</div>
<div style={{ padding: "12px 24px", borderRadius: 8, backgroundColor: "#d4a050", color: "white", fontSize: 18, fontWeight: 600 }}>
Amber Button
</div>
</div>
</div>
</AbsoluteFill>
);
export const RemotionRoot: React.FC = () => (
<Composition id="Demo" component={Demo} durationInFrames={180} fps={60} width={1920} height={1080} />
);
registerRoot(RemotionRoot);
# Correct output
npx remotion render Repro.tsx Demo bt709.mp4 --color-space=bt709
# Incorrect output
npx remotion render Repro.tsx Demo default.mp4
Environment
- Remotion 4.0.435
- H.264 codec (default)
- Windows 11 + WSL2 Ubuntu
Edit: The issue also reproduces when playing the rendered video in online video players such as https://simplevideoplayer.com/ and https://www.veed.io/tools/video-player
Yes, this is due to the default color space bt609. The fix is simple as you figured it out - use bt709 instead.
In Remotion 5.0, the default color space will be bt709!
https://www.remotion.dev/docs/5-0-migration