Color insert values multiply instead of overide

the expected output frame.BackgroundColor3 = (114,106,121)
the auctal output 29070, 27030, 30855

i used this code to overide
frame.BackgroundColor3 = Color3.new(114,106,121)

and this is what i get
image

ive found that those large numbers are multiples of the input numbers and 255, leading me to belive that for some reason its being multiplied.

the code is in replicated first, created with instance.new instead of studio, and
all core guis are oof, and the player can not spawn in.
game:GetService(“Players”).CharacterAutoLoads = false
local IMMORTAL = game:GetService(“StarterGui”)
IMMORTAL:SetCore(“ResetButtonCallback”,false)

im not sure however if the instance.new starts at 255 though, so it may be somthing else

i have confirmed, the instance.new gives it these color values 163, 162, 165

which do not seem to have a relation to the numbers.
this just got stranger…

This is a common mistake that a lot of people make:

frame.BackgroundColor3 = Color3.new(114,106,121)

Color3.new returns an HSV value

to fix this, use:

frame.BackgroundColor3 = Color3.fromRGB(114,106,121)

This will fix your issue

1 Like

just tested it out, can confirm it works, thanks :slight_smile:
image

1 Like

Alternatively, you could use Color3.new(114 / 255, 106 / 255, 121 / 255) instead of Color3.fromRGB()

1 Like