> For the complete documentation index, see [llms.txt](https://docs.connected.events/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connected.events/cookbook/host-your-event/at-the-event-on-site/badge-color-rules.md). Agents can also search and read this documentation through its [MCP server](https://docs.connected.events/~gitbook/mcp).

# Badge Color Rules

Configure badge color rules to easily identify badges on-site.

## Introduction

Streamline on-site visual identification and elevate badging branding with **Badge Color Rules.** This feature allows administrators to dynamically assign colors to participant badges based on specific criteria. Enter the desired hex code and select the determining factor—whether the color is triggered by an attendee's tier/segment, account attribute, pass type, or pass attribute. To prevent conflicts when an attendee meets multiple criteria, you can easily configure the sort order to establish exactly which rule the system should prioritize and respect first. Follow the steps below to configure your badge color rules and optimize your event's on-site logistics.

## How to Set Badge Color Rules

<figure><img src="broken://files/Bd5tT7eo2SVFOoSDnE8a" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

#### Navigate to Badge Color&#x20;

* Select **"Events"** at the top of the Admin Portal.
* Select the event you wish to set badge color rules for.&#x20;
* Select **"On-Site"** from the left-hand menu.&#x20;
* Select **"Badge Colors"** from the top menu.&#x20;
  {% endstep %}

{% step %}

#### Create Badge Color Rule

* Select **"Create Rule +"** on the top right of the page.&#x20;
* Enter the rule name.&#x20;
* Select the type and the subsequent account attribute, tier/segment, pass type, or pass attribute.&#x20;
* Enter the color hex code.&#x20;
* Enter a gradient color hex code to apply a gradient badge color rule. Leave blank to keep the badge a single color.
* Set the sort order.&#x20;
  * The sort order determines which rule takes priority if multiple rules apply to a pass.
* Select **"Create"** to finalize the rule.&#x20;
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.connected.events/cookbook/host-your-event/at-the-event-on-site/badge-color-rules.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
