Style BibleGitHub

Colour guide

Colour is the last thing people notice and one of the first things they feel. A good grade makes shots from different days look like one film and pushes the feeling of the story. A bad one is a preset dropped on everything. This guide covers correcting, matching and the look, for filmed, AI-made and code-made video, at three levels. Check and grade with:

node scripts/grade.mjs --check film.mp4                 # per shot: levels, clipping, colour cast, jumps between shots
node scripts/grade.mjs --scopes film.mp4 scopes.jpg --at 12.5   # one frame with its waveform and vectorscope
node scripts/grade.mjs --sheet film.mp4 sheet.jpg       # one frame per shot, to see if they match
node scripts/grade.mjs film.mp4 graded.mp4 --balance --look warm-film --strength 0.7
node scripts/grade.mjs shot3.mp4 shot3-fixed.mp4 --match hero-shot.jpg
node scripts/grade.mjs --looks                          # the looks and what each is for

Two jobs, always in this order

JobQuestionDone when
CorrectIs this shot right? Exposure, black and white points, white balance, skin.It looks like a true, clean picture of what was there.
MatchDo the shots in a scene look like one place and one moment?You can cut between them and nothing jumps.
LookWhat should it feel like?The colour tells the story the script tells.

A look on top of uncorrected shots makes every problem worse. Never drop a LUT or a preset first.

1. Correct

Work on a calm, grey screen in a dim room, with the screen's own colour effects (night mode, vivid mode, auto brightness) turned off. Phones lie: check on a computer too.

  1. Black point. The darkest thing that should be black (a shadow, a jacket) just touches black on the waveform. Not below: crushed blacks lose detail. Not floating above: the picture looks grey and washed out.
  2. White point. The brightest thing that should be white (a shirt, a sky, a lamp) sits near the top. Only real lights and shiny glints may clip.
  3. Middle. Move the mid-tones (gamma) until the face or subject sits where it feels right. A face in normal light sits around 60 to 70% on the waveform; darker skin a little lower. Faces are the reference, not the background.
  4. White balance. Something white or grey should have no colour. On the waveform's RGB parade, the three channels line up on white and grey things. Fix temperature (blue to orange) first, then tint (green to magenta).
  5. Skin. On the vectorscope, every skin tone, from the palest to the darkest, falls near one line between red and yellow (the skin line). If skin is off the line toward green or magenta, the balance is wrong. Warm lamp light can push skin off the line on purpose: that is a choice, not an error.
  6. Saturation last. Usually a little less than you think. Over-saturated skin goes orange.

grade.mjs --balance does a gentle version of steps 1, 2 and 4 automatically: it stretches the levels to full range and pulls the average colour back toward neutral. Use it as a start, then look.

Reading the scopes

ScopeShowsUse it for
WaveformBrightness from left to right of the frame, bottom is black, top is whiteBlack and white points, faces, clipping
RGB paradeThe same, for red, green and blue apartWhite balance: grey things line up
VectorscopeColour: direction is hue, distance from the centre is saturationSkin line, colour casts, too much saturation
HistogramHow many pixels at each brightnessQuick clipping check

grade.mjs --scopes puts the frame, its waveform and its vectorscope in one picture, with the skin line drawn on.

A frame with its waveform and its vectorscope; the skin sits on the orange skin line

2. Match

Grade the scene's best shot first (the hero shot), then make the others match it.

  1. Put the hero shot and the next shot side by side (grade.mjs --sheet shows one frame per shot).
  2. Match the brightness of the faces, then the black level, then the colour of the shadows, then the highlights.
  3. Match the skin before the background. Viewers forgive a different wall; they notice a face that changes colour between cuts.
  4. grade.mjs --match hero.jpg copies the hero's levels and colour balance onto a shot. It gets you close; finish by eye.
  5. Shots from AI video models drift in colour from clip to clip, even with the same prompt. Match every clip; never trust them to arrive matched.

grade.mjs --check lists the cuts where brightness or colour jumps between shots. A jump that the story wants (a door opens into sunlight) is fine; one it does not want is the first sign of an amateur edit.

3. The look

The look serves the story, the style and the place. Choose it from the script, not from a list of popular presets.

FeelingContrastColourExample looks
Warm, safe, nostalgicSoftWarm mids, gentle lifted blackswarm-film, golden
Cold, lonely, clinicalMediumCool shadows and mids, low saturationcold, bleach
Tense, grittyHardLow saturation, deep blacksbleach, noir
Dreamy, soft, youngLowPastel, lifted blacks, glowpastel, faded
NightMediumBlue-cyan, dark mids, bright practical lightsnight
Real, honest (news, vlog, tutorial)NaturalNeutral, true skinnatural
Old print, archiveLowFaded, a colour shift, grainfaded, sepia, noir

Every look on the same shot (strength 0.85), and a washed-out shot before and after --balance:

The same shot ungraded and in 13 looks, and a washed-out shot before and after balance

grade.mjs --looks lists all the looks. --strength 0.5 mixes half of a look over the corrected picture; most looks are better at 0.4 to 0.8 than at full. A .cube LUT from a camera maker or a colourist works the same way with --lut file.cube; put it after correction, never before.

Colour that tells the story

Director looks

Each of the 51 directors in the library has a palette: six colours from shadow to highlight plus their accent, how saturated and how hard the image is, and one line on the light (scripts/directors.json, palette). The same palette is on each directed-like-… style page as swatches, and it goes into that style's image prompt. grade.mjs turns it into a grade:

node scripts/grade.mjs --looks                                        # the 13 looks, then every director
node scripts/grade.mjs film.mp4 out.mp4 --balance --look villeneuve --strength 0.7
node scripts/grade.mjs film.mp4 out.mp4 --director nolan               # the same as --look nolan

One frame ungraded and in the looks of eight directors, each with its palette

The grade leans the shadows, mids and highlights toward the palette and sets saturation, contrast and the black level. It can only push the colour you shot: Villeneuve's haze and Leone's sun come from the light, the place and the time of day first. Plan the light with the palette (guides/lighting.md), then grade at 0.5 to 0.8. These are grades in the spirit of each director's public work, not copies of any film's colour.

Code-made and drawn films

A code film's colour comes from its palette (palettes.json, the style's colours) and its finish (finishes.json: grain, print, film, VHS and so on, added by finish.mjs). Grade inside the drawing: choose the palette per scene, not one filter at the end. Use grade.mjs --check anyway, to catch scenes that are much brighter or darker than the rest.

HDR

Most people watch on phones in SDR. Unless you shot in a log or HDR format and know how to grade it, deliver SDR in the standard colour space (Rec. 709). export.mjs tags every file as Rec. 709, so platforms do not guess and shift your colours.

No slop in colour

Check before export

  1. node scripts/grade.mjs --check film.mp4 shows no problems you did not choose.
  2. Faces sit near the skin line and match between cuts.
  3. Blacks are black and whites are white, unless the look says otherwise.
  4. Watch it once on a phone at half brightness: can you still see the faces?
  5. The look fits the feeling of each scene.

Levels

First video. Shoot in good light and set the camera's white balance. Then run grade.mjs --balance and look. Add no look, or one look at low strength. Check on a phone.

Getting good. Correct each shot by the scopes, match every shot of a scene to its hero shot, choose one look for the whole film from the script's feeling, and keep skin on the skin line. Check every cut with --check.

Pro. Shoot log or raw and grade in a colour-managed pipeline (ACES or the camera maker's), with nodes for balance, match, look and finishing. Give each story world its own palette, grade skin apart from the rest with a mask, use a calibrated screen, and make versions for HDR and SDR.

Browse the styles