Colors ide/ui different?

Hello,

i added a constant (color) to my app, value is the background of a window (dark grey). Picked it with the pipette and set profile to “generic rgb”, i’ll get &c323232.
but when assigning this constant to a e.g. rectangles fillcolor it shows up different in my app.
What color space is xojo/ide using?

And, for example if i have a rgb picture with sRGB IEC61966-2.1 profile, how can i pick a color from that picture and match it to a xojo color so that it shows up exactly the same in then running app?

so, when i use “Apple RGB” in XOJO as color Profile it seems to match the sRGB IEC61966-2.1 profile from the picture… strange