How to properly turn color to string?

I am trying to turn color intro string. But everytime I do, it gives some random assorment of numbers and when reapplied it gives me a different color, any help on getting the exact color?

script.Parent.MouseButton1Click:Connect(function()
	local PlayerValue = script.Parent.Parent.Parent.Parent.Parent.Parent.HomeOwner.Value
	local Player = game.Players:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Parent.HomeOwner.Value)
	local Me = script.Parent.Parent.Parent.Parent.Parent.Parent.PersonUsing.Value
	local color = script.Parent.BackgroundColor3
	print(color)
	local value = tostring(color)
	print(value)
	Player:WaitForChild("stats"):WaitForChild("InteriorWalls").Value = value
	print("changed wall value")
	if Me == PlayerValue then
		if Player then
			local Children = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.InWalls:GetChildren()
			for i = 1, #Children do
				Children[i].Color = script.Parent.BackgroundColor3
			end
		end		
	end
end)

Just store the color’s hex value:

local value = color:ToHex()

and then you can get the original color by doing:

Color3.fromHex(value)