MsgC Console colors appearing different

It’s not much of an issue, just an annoying color problem.

My code is this:



function CPRINT( txt, t )
	local color = Color( 255, 255, 255 )
	local cat = "SERVER"
	if ( t == 1 ) then
		color = Color( 66, 137, 244 )
		else if ( t == 2 ) then
			color = Color( 255, 0, 255 )
			else if ( t == 3 ) then
				color = Color( 0, 0, 255 )
			end
		end
	end
	MsgC( color, "[" .. cat .. "] " )
	MsgC( Color( 245, 255, 170 ), txt .. "
" )
end

function GM:Initialize() 
	CPRINT( "Gamemode has successfully initialized.", 1 )
end


The first function is unnecessary, but put in for organization. We can condense this down to the following:



function GM:Initialize() 
	MsgC( Color( 66, 137, 244 ), "[SERVER] " )
	MsgC( Color( 245, 255, 170 ), "Gamemode has successfully initialized.
" )
end


I have noticed that while the first color is supposed to look very close to this:

Instead it appears like this:

And for the second color:

Looks like:

Completely white.

Also, if you go dark enough with the colors they wont appear at all. This is all being drawn in the SRCDS console (I put “-console” in the target field of my “server start” SRCDS shortcut).

Anybody have an idea how to fix this? Or what exactly is happening?

iirc the color palette is restricted and the game ‘rounds’ to the closest available color.

Either text color limitations in the server console, or just the dark background messing with the text color.
Probably limitations. I may be wrong but that’s the best reason I can think of.