XFix reads publicly published pages only. It requests no credentials and retains no entity data. Traffic is encrypted over HTTPS.
Criterion 2 · FoundationsMachine-measured

Ensure the use of approved colors as defined in the Unified Design System (Platforms Code)

Every colour value on the page must come from the approved palette, without modification and without substitution by a near neighbour. A colour one or two steps off the official green is a full violation, not a partial one, and it is the violation that most often survives a visual review.

It is one of the primary criteria in the foundations group of the Saudi Platforms Code, issued by the Digital Government Authority.

How XFix measures this criterion

The applied value is read from the page and compared with the value approved in the Platforms Code, so the verdict comes from a measurement rather than an estimate, and the observed and expected values are attached together.

The official text and its checkpoints

This criterion rests on 2 checkpoints published in the Platforms Code, and they are the reference when judging it.

This criterion on the official Platforms Code site

The checkpoints, one by one

Each checkpoint below has its own answer: what it requires, what passes and what fails, how it is measured or verified, and how it is repaired. Each has a direct link.

  1. Approved colour values, unmodified

    Machine-measuredDGA-002-a

    Every colour value on the page must come from the Platforms Code palette — backgrounds, text, borders and the rest — with no change to the value and no substitution by a near neighbour. A near-miss colour is a full violation, not a partial one.

    XFix measures this checkpoint automatically, and attaches the observed value and the expected value together.

    What passes: Every colour observed on the page matches an approved palette value, whether written as a variable or as a literal.

    What fails: A value close to the approved one without equalling it — a green one or two steps off the official green. This is the most frequent violation precisely because it survives a visual review.

    How it is measured or verified: The tool counts every declared colour value across the sampled pages and compares each with the palette by computed colour distance, separating exact matches from near ones. A violation is reported once per value with a usage count, not once per element.

    How it is repaired: Replace literal values with palette variables in the stylesheet, so library updates reach them automatically. Start with the most-used value: least work, largest effect.

  2. Contrast on coloured backgrounds, and the On Color property

    Machine-measuredDGA-002-b

    Any element placed on a coloured background must meet the required contrast ratio for accessibility, using the On Color property built into Platforms Code components. What counts is composited contrast as the user actually sees it, not the contrast assumed.

    XFix measures this checkpoint automatically, and attaches the observed value and the expected value together.

    What passes: White or dark text on a coloured background reaching 4.5:1 for small text and 3:1 for large text and graphical elements, taken from the On Color variable rather than chosen by hand.

    What fails: Text at step 600 of the ramp on a light background: the value is official and the result is below the threshold, because 600 is a fill step and 700 is the text step.

    How it is measured or verified: Contrast is computed from the colours actually composited on the page rather than from declared values alone, since transparency and stacked layers change the result.

    How it is repaired: Use the On Color variable that accompanies the background colour instead of picking the text colour by hand, and move small text from step 600 to step 700.

Related criteria

The limits of this tool

XFix is an independent commercial tool. It is not part of the Digital Government Authority, is not endorsed by it, and does not act on its behalf. What it produces is an indicative estimate expressed as a range. It is not the Platforms Code Application Certificate and not a declaration of conformity. The certificate is issued by the Authority alone, and the Authority’s assessment remains the reference.

Its usefulness is in showing the gap early and with evidence. It does not stand in for the body that decides.

Criterion 2 · Colour · Saudi Platforms Code | XFix