I'm confused about what a color picker field is storing in the document

Quick question for developers. I’m trying to use the “Color” data type to allow a user to pick a color that will then be used to generate some HTML behind the scenes. The problem is this, when the document is saved the value that is saved in the color field is an 8 character code like this: 0042FFFF

That doesn’t seem to map to any of the HTML color formats that I’m familiar with (I’m not a real web developer so maybe this is obvious). I would expect that if it was going to be in hex it would look like this a500b4.

Can I get a quick explanation of what is going on here?

Thanks,

Rob

Subject: * I believe the extra byte is a reference to the Notes 256-color palette entry closest to the selected color

Subject: Thanks for the response!

I think the the left most byte is just padding or is used for what you described. As long as I ignore it I’m good.

Thanks!

Rob