<Color> / Element reference
Color
The Color element in IDML: where it appears (Resources/Graphic), its 16 attributes, their values, and how real documents use them.
Definition
A colour swatch: its model (process, spot or registration), its colour space and its channel values.
- Lives in
Resources/Graphic305- Frequency
- In 305 of the 305 documents of the census (100%), 2026-10-12
- Attributes
- 16 observed, 13 of them vary between documents
- Discussed in
- Colors & swatches, Apply a gradient fill, Color & swatches, Glossary, How the parts reference each other and Resource parts
Structure
Relationships
Color sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Default | Seen in |
|---|---|---|---|---|
| ColorEditable# Whether the swatch's colour can be changed in InDesign; built-in swatches such as Registration can't. | boolean | false305true305 | — | 100% varies in 305 |
| ColorOverride# Marks a reserved colour's role: Specialblack, Specialpaper, Specialregistration, Hiddenreserved, or Normal for any other colour. | keyword | Specialblack305Specialpaper305Hiddenreserved271Normal271Specialregistration271 | — | 100% varies in 305 |
| ColorRemovable# Whether the swatch can be deleted; built-in swatches can't. | boolean | false305true271 | — | 100% varies in 271 |
| ColorValue# The channel values, read as Space says: four CMYK percentages, three RGB values from 0 to 255, or L, a and b. | list of numbers (pt) | any | — | 100% varies in 305 |
| Model# How the colour prints: Process (from the process inks), Spot (an ink of its own) or Registration (on every plate). | keyword | Process305Spot | — | 100% varies in 272 |
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | builtin or keyword or integer or text | any | — | 100% varies in 305 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | reference to Color | any | — | 100% varies in 305 |
| Space# The colour space ColorValue is in: CMYK, RGB or LAB. | keyword | CMYK305RGB77LAB3Gray | — | 100% varies in 80 |
| Visible# Whether the colour is listed in the Swatches panel; the reserved process primaries carry false. It does not change rendering. | boolean | true305false271 | — | 100% varies in 271 |
| AlternateColorValue# A spot colour's alternate values, in AlternateSpace: the colour shown where the ink is not printed. Empty on process colours. | list of numbers (pt) | any | — | 89.2% varies in 2 |
| AlternateSpace# The space of a spot colour's alternate, such as CMYK or LAB; NoAlternateColor on process colours. | keyword | CMYKRGBLABGray | — | 89.2% varies in 2 |
| SwatchCreatorID# | integer | any | — | 88.9% varies in 1 |
| SwatchColorGroupReference# The swatch's entry in a colour group, a ColorGroupSwatch by Self; n when it is in none. | text | any | — | 86.9% varies in 265 |
| ConvertToHsb# | boolean | false57 | — | 18.7% |
| SpotInkAliasSpotColorReference# | — | any | — | 0.3% |
| TintValue# Not how InDesign stores a tint: InDesign drops it and shows the colour at full strength. A named tint is a <Tint> element. | integer (percent) | 0 to 100 | 100 | 0.3% |
Color (census of 2026-10-12, 305 documents). Seen in is the share of the 305 documents with a Color that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Visualization

Color in the example “A named tint swatch next to a local tint”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Gradients & tints.Behavior
A <Tint> swatch with BaseColor and TintValue is a colour at reduced strength with a name of its own; FillTint applies the same reduction to one object only.
Shown, with its source and a live render, in Gradients & tints.
Evidence
- Observed
- In 305 of 305 documents (100%):
Resources/Graphic305. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
- InDesign checks
- A named tint swatch next to a local tint: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
Paged support
What Paged, one implementation of the format, does with Color. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Reads 8 of the 16 attributes
- Render
- One feature of the capability record names this element (below); examples compared with InDesign below
- Edit
- 7 attributes map to a scriptable path for
paged.set - Write
- Writes 13 of the 16 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| ColorEditable | not read | — | writesresources.rs:549 |
| ColorOverride | not read | — | writesresources.rs:545 |
| ColorRemovable | not read | — | writesresources.rs:550 |
| ColorValue | readsgraphic.rs:166 | value | writesresources.rs:107 |
| Model | readsgraphic.rs:169 | model | writesresources.rs:105 |
| Name | readsgraphic.rs:203 | name | writesresources.rs:110 |
| Self | readsgraphic.rs:161 | — | writesresources.rs:104 |
| Space | readsgraphic.rs:162 | space | writesresources.rs:106 |
| Visible | not read | — | writesresources.rs:551 |
| AlternateColorValue | readsgraphic.rs:176 | alternateValue | writesresources.rs:115 |
| AlternateSpace | readsgraphic.rs:173 | alternateSpace | writesresources.rs:113 |
| SwatchCreatorID | not read | — | writesresources.rs:552 |
| SwatchColorGroupReference | not read | — | not written |
| ConvertToHsb | not read | — | not written |
| SpotInkAliasSpotColorReference | not read | — | not written |
| TintValue | readsgraphic.rs:182 | tint | writesresources.rs:120 |
In the capability record
| Feature | Parse | Render | Edit | Evidence |
|---|---|---|---|---|
| Color groups (CRUD + membership) shipped | yes | — | yes | All linked evidence is passing (20 tests current) |
Rendered against InDesign
- A named tint swatch next to a local tint: mean colour difference 0.495 ΔE, structural similarity 0.999, same fonts on both sides (checked 2026-10-11).
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names Color.