Skip to content
CueNorm Public Validator

Rule

ALLOWED_TEXT_COLORS

Accepts only the text colors of the destination's palette.

What it checks

Some destinations let subtitles use a few colors, typically to tell speakers apart, and nothing else. A subtitle whose text uses a color outside the palette produces one issue listing those colors.

This rule does not judge whether a color is used for the right speaker: that stays an editorial judgement.

How it is measured

CueNorm reads the text color of every span of the subtitle (ASS colors, SRT <font color>, TTML tts:color, WebVTT color classes, EBU-STL teletext color codes). Text without an explicit color counts as white, so white must be in the list to be accepted. Colors are compared after normalization: #FF0, yellow and #ffff00 are the same color.

Parameters

Parameter Type Meaning
colors list of colors (#rrggbb, #rgb or a name such as white) The accepted text colors

Example

With colors: ["#ffffff", "#ffff00", "#00ffff", "#00ff00"], the BBC palette, a subtitle with red text is reported as Text color(s) #ff0000 are not among the allowed colors (#ffffff, #ffff00, #00ffff, #00ff00).

For white text only, FORBIDDEN_STYLE with style: color says the same thing more directly.

How to fix

  • Recolor the text with a color of the palette.
  • If the colors follow another destination's convention, check which palette color stands for the same speaker or role, and apply it consistently.

Profiles using this rule

ProfileSeverityParameters
ARTE SME German arte-sme-de warning colors=#ffffff #ffff00 #00ffff #00ff00 #ff00ff #0000ff
BBC Subtitles English (UK), EBU-STL bbc-subtitle-en-gb-ebustl error colors=#ffffff #ffff00 #00ffff #00ff00
BBC Subtitles English (UK), EBU-TT Part 1 bbc-subtitle-en-gb-ebutt error colors=#ffffff #ffff00 #00ffff #00ff00
BBC Subtitles English (UK), EBU-TT-D bbc-subtitle-en-gb-ebuttd error colors=#ffffff #ffff00 #00ffff #00ff00
Channel 5 SDH English (UK), EBU-STL channel5-sdh-en-gb-ebustl warning colors=#ffffff #ffff00 #00ffff #00ff00 #ff00ff