/
Colour Codes in BUZ

Colour Codes in BUZ

You may have noticed colour codes in Excel export files for Lead, Quote, Job Tracking, Dispatch Statuses and for Customer Billing. Example:

image-20250102-060231.png
image-20250102-060254.png

 

Understanding Colour Codes in BUZ Software

BUZ uses signed 24-bit integer colour codes to represent colours. These codes encode the RGB (Red, Green, Blue) values of a colour into a single number, allowing efficient storage and processing. Below is an explanation of how these codes work and how you can interpret them.

 


What Is a colour Code?

A colour code is a numerical representation of a colour, where:

  • Red, Green, and Blue channels are assigned values from 0 to 255.

  • Each channel contributes 8 bits to form a 24-bit integer.

For example:

  • RGB (164, 70, 70) becomes the hexadecimal code #A44646.

  • This can also be represented as a signed integer.


Why Are Some Numbers Negative?

The software uses signed integers, meaning numbers can be positive or negative. If a number is negative, it is still valid and represents a specific colour. The conversion process ensures these numbers are interpreted correctly in BUZ.


How Are colours Converted?

Here’s the process the software uses to interpret a signed integer colour code:

  1. If the Number is Negative:

    • Convert it to its unsigned equivalent by adding 2^24 (16,777,216).

  2. Convert to Hexadecimal:

    • Break the hexadecimal code into its RGB components.

    • Example: #A44646 becomes (Red: 164, Green: 70, Blue: 70).

  3. Display the colour:

    • The software renders the colour based on these RGB values.


Example

Colour Code

Conversion Steps

Resulting colour

Colour Code

Conversion Steps

Resulting colour

-6011322

Add 16,777,216 -> 10,176,894 -> Convert to Hex: #A44646

A muted, earthy red

-198429

Add 16,777,216 -> 16,579,987 -> Convert to Hex: #FCF8E3

A light yellow-beige shade


FAQs

  1. Why can’t I see a list of predefined colours?

BUZ uses dynamic colour rendering, allowing you to visualize any valid colour code directly in the colour picker.

  1. How do I find the exact RGB values?

Use online resources to convert the code to RGB, HSL, HEX or resulting colour.

  1. Can I use my own custom codes?

Yes! You can enter any valid signed 24-bit integer, and the software will render the colour.

  1. What if the code doesn’t produce a colour?

Ensure the code is a valid signed 24-bit integer.

 

Related content