# Confused about Xojo Colors (after all these years)

**URL:** <https://ifnotnil.com/t/confused-about-xojo-colors-after-all-these-years/3104>\
**Category:** Other\
**Created:** [22 February 2023 15:37 UTC](https://ifnotnil.com/t/confused-about-xojo-colors-after-all-these-years/3104 "2023-02-22T15:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [22 February 2023 15:37 UTC](https://ifnotnil.com/t/confused-about-xojo-colors-after-all-these-years/3104/1 "2023-02-22T15:37:04Z")

</div>

In Xojo a color can be expressed a **&c** _RRGGBBAA_

but the AA is “optional” and assumes to be a default of FF

so how does Xojo actually parse those values  
since

```auto
&CFF0000FF is the same as &CFF0000 ... ie both sold RED

```

```auto
&C000000 is Solid Black, but &C00000000 should be TRANSPARENT

```

So when/how does one know what the alpha is in those edge circumstances?

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [22 February 2023 15:40 UTC](https://ifnotnil.com/t/confused-about-xojo-colors-after-all-these-years/3104/2 "2023-02-22T15:40:14Z")

</div>

Xojo’s alpha is backwards

[https://docs.xojo.com/Color.Alpha](https://docs.xojo.com/Color.Alpha)

> The alpha channel is the translucency of the color represented as an integer between 0 (opaque) and 255 (transparent).

so defaulting to 0 means 100% opaque
