I want to put a Frame underneath the Roblox top bar, which can be achieved by the following code:
local barFrame = Instance.new('Frame', script.Parent)
barFrame.BackgroundColor3 = Color3.new(0, 126/255, 138/255)
barFrame.Position = UDim2.new(0, 0, 0, -36)
barFrame.Size = UDim2.new(1, 0, 0, 36)
barFrame.ZIndex = 10
In this case, putting the Frame underneath the top bar with the color (0,126,138) makes the top bar appear to have the opaque color of (16,78,84). The top bar itself is solid black with a transparency of .5. How can I go from what I want the opaque color to be to what color the frame should be?

1 comment
I LITERALLY WROTE A SCRIPT THAT PUTS A FRAME UNDER THE TOP BAR! READ EVERYTHING I SAID! The question was, you put an opaque frame underneath, and it results in a different color because of the black topbar with a .5 transparency. My questions was how to find what color you should put underneath to achieve a certain overall color of the top bar.