How do I determine color I'm seeing on screen?

Muse

Lifer
Jul 11, 2001
40,868
10,222
136
I'm trying to create a custom color for pushbuttons in my application, defining a color such as:

"RGB(0,0,0,192,192,192), RGB(0,0,0,255,255,255),,,, RGB(0,0,0,255,255,255),,, RGB(0,0,0,236,233,216), RGB(0,0,0,236,233,216)"

I want my color to be close to if not exactly like a certain grey I see on screen. Is there a way I determine the scheme that corresponds to the color I'm seeing? TIA.

Edit:

I picked out a color in Control Panel that may be OK:

Hue: 160
Sat: 0
Lum: 181

Red: 192
Green: 192
Blue: 192

How does that translate into the scheme above?
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Use the color picker tool from Photoshop? I'm sure many paint programs have a color picker. If it doesn't let you pick a color outside the window then take a screenshot and load it into the program. Somewhere once you pick the color as your foreground brush it should say the RGB value.

I don't understand what's going on with:
RGB(0,0,0,0,0,0)
6 values?

It should be RGB(r,g,b).
 

OBCT

Senior member
Jul 10, 2006
236
0
0
Maybe he thinks the Hue, Saturation, and Luminence are part of the rgb color? Heh.

Hue, Saturation, and Luminence are another way of chaning a color. Changing rgb values affects how much red, green, or blue is in the color. Hue affects the overall color, from red to yellow to green to blue to purple (think ranbows). Saturation affects the dullness of a color. A color with high saturation (the default MSPaint palette) are harsh to the eyes. Low saturation produces a greyer, more realistic color. Luminence is simply how bright or dark the color is.
 

Muse

Lifer
Jul 11, 2001
40,868
10,222
136
I don't have Photoshop. I have a variety of programs and utilities. I seem to remember a color picker but don't know where.

I quoted the values I found in Control Panel because that was apparently a color picker. It gave those values for the color I thought might work out OK:

Hue: 160
Sat: 0
Lum: 181

Red: 192
Green: 192
Blue: 192

I figure I can plug those number into the RGB formula, but it's not working so far.
 

Muse

Lifer
Jul 11, 2001
40,868
10,222
136
Just trial and error, I think this works (I don't know what the hell I'm doing):

m0wcolr = "RGB(0,0,0,150,150,150)" + ;
",RGB(0,0,0,255,255,255)" + ;
",,,,RGB(0,0,0,255,255,255)"+;
",,,RGB(0,0,0,210,210,210),RGB(0,0,0,210,210,210)"
 

Hork

Senior member
Mar 8, 2000
531
0
0
Look for freeware called Pixie from nattyware. Pixie

Or, there is a color picker in the DevToolBar from Microsoft, that also has a bunch of other tools useful to web developers.
 

Muse

Lifer
Jul 11, 2001
40,868
10,222
136
Originally posted by: Hork
Look for freeware called Pixie from nattyware. Pixie

Or, there is a color picker in the DevToolBar from Microsoft, that also has a bunch of other tools useful to web developers.

Thanks. I arrived at my last post just plugging in numbers and running my code and rubbing my chin and I determined I liked it well enough. Now I'm trying to figure out how to create a simple function that will edit my programs and make all the necessary changes, so I don't have to do it manually every time I regenerate my screens.