If you want the RGB values, then use DigitalColor Meter
or Pixie
, and point to the view. You will get the RGB values.
You can start DigitalColor Meter
from Spotlight.
EDIT:
First you need to get the RGB values. Now in your array, put the RGB values with each value divided by 255.0
The last value is alpha value, which varies from 0.1 to 1.0 and depends on how much transparent you want your view to be.
Thus if your RGB values are 139, 162, 200. The values you will provide to the array are
139.0/255.0, 162.0/255.0, 200.0/255.0, 1.0
.