# allyhub inspect contrast

> The text against the pixels behind its glyphs now, as WCAG contrast ratios (the check does not measure it)

Source: https://allyhub.com/docs/reference/cli/inspect-contrast · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub inspect contrast [item] [options]
```

## Arguments

| Argument | Type | What it is |
| --- | --- | --- |
| `<item>` | string | The piece: its id (its file without its extension) or its file; default the project's only one |

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `--combo` | list of string |  | The first combo matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03); default the first combo |
| `--at` | list of string |  | At these moments: seconds (from --part's start when given) or anchors (@press, @/map, @press+0.2) |
| `--every` | number |  | Every this many seconds through the stretch (--part, or --from to --to, else all of it) |
| `--part` | string |  | Only this part |
| `--from` | number |  | From this second of the video |
| `--to` | number |  | Up to this second of the video |
| `--final` | boolean | `false` | Over the final picture, footage composited (slower), not the check's graphics |
| `--below` | number |  | Only texts whose lowest ratio is under this one, and those not measured (default every text) |
| `--all` | boolean | `false` | Every finding on a line of its own, and every block, however faint (without it, those at 90 % opacity or more) |

## Global options

`--dir <value>`: the project's folder; default the one around where it is run. `--json`: print the result as JSON.

## Examples

```bash
allyhub inspect contrast launch/film --part hook
allyhub inspect contrast launch/film --at 1.5 --final
allyhub inspect contrast launch/deck --below 4.5
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**video**: Making a video (one piece, or a batch of ads in combos)

[`check`](https://allyhub.com/docs/reference/cli/check.md) → [`frames`](https://allyhub.com/docs/reference/cli/frames.md) → [`inspect`](https://allyhub.com/docs/reference/cli/inspect.md) → [`inspect layout`](https://allyhub.com/docs/reference/cli/inspect-layout.md) → [`inspect timeline`](https://allyhub.com/docs/reference/cli/inspect-timeline.md) → [`inspect motion`](https://allyhub.com/docs/reference/cli/inspect-motion.md) → [`inspect still`](https://allyhub.com/docs/reference/cli/inspect-still.md) → `inspect contrast` → [`inspect seams`](https://allyhub.com/docs/reference/cli/inspect-seams.md) → [`inspect flash`](https://allyhub.com/docs/reference/cli/inspect-flash.md) → [`inspect loop`](https://allyhub.com/docs/reference/cli/inspect-loop.md) → [`inspect combos`](https://allyhub.com/docs/reference/cli/inspect-combos.md) → [`audio`](https://allyhub.com/docs/reference/cli/audio.md) → [`add search`](https://allyhub.com/docs/reference/cli/add-search.md) → [`add`](https://allyhub.com/docs/reference/cli/add.md) → [`dev`](https://allyhub.com/docs/reference/cli/dev.md) → [`render`](https://allyhub.com/docs/reference/cli/render.md)

**decks**: Making a deck

[`slides capabilities`](https://allyhub.com/docs/reference/cli/slides-capabilities.md) → [`slides import`](https://allyhub.com/docs/reference/cli/slides-import.md) → [`check`](https://allyhub.com/docs/reference/cli/check.md) → [`frames`](https://allyhub.com/docs/reference/cli/frames.md) → [`frames compare`](https://allyhub.com/docs/reference/cli/frames-compare.md) → [`inspect layout`](https://allyhub.com/docs/reference/cli/inspect-layout.md) → `inspect contrast` → [`dev`](https://allyhub.com/docs/reference/cli/dev.md) → [`render`](https://allyhub.com/docs/reference/cli/render.md)

**images**: Making an image: boards of Photoshop's layers, a PSD in and out

[`image import`](https://allyhub.com/docs/reference/cli/image-import.md) → [`check`](https://allyhub.com/docs/reference/cli/check.md) → [`frames`](https://allyhub.com/docs/reference/cli/frames.md) → [`inspect layout`](https://allyhub.com/docs/reference/cli/inspect-layout.md) → `inspect contrast` → [`dev`](https://allyhub.com/docs/reference/cli/dev.md) → [`render`](https://allyhub.com/docs/reference/cli/render.md)
