Does anyone know the default HTML button grey color code?

I have several web pages where I used the type=button and

for some reason when i move the mouse out the orginal grey is not coming back in Mozialla firefox.

also, is this a good practice to change the colors when user points over the button or not?
any good clear colors recommended?
Who is Participating?
Gurpreet Singh RandhawaConnect With a Mentor Web DeveloperCommented:
well Classic Windows Button


Open in new window

so you can apply it as:

<input type="button" background="#d4d0c8" name="Search" value="Search">

or u can also use style as above stated by Experts
>Does anyone know the default HTML button grey color code?
no one

<input type="button" value="I'm a button" onmouseover="'red';" onmouseout="'';" />

Open in new window

test page :
Prafulla MaharjanCommented:
just try as


this is default red color

try this in style sheet as you like color

please check and let me know.
7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

>>input{color:#ff0000;} ... please check and let me know.

That styles all input elements, not just buttons. I don't think that is what is desired.
Gurpreet Singh RandhawaWeb DeveloperCommented:
This the Color


Open in new window

Well i Checked on Windows 7, if you want to see in Windows Xp or Windows Classic Mode Let me know

sam15Author Commented:
I tested the colors.. The "#d4d0c8" seems to match 100% the orignal defaul color. "#dadada" was a little lighter grey.

Is this a good practice for HTML forms to make the buttons change colors when user points over it?
I noticed most web popular websites do not use that but it seems for me to be a nice feature.
Is it also good to use Red with Grey to show it.
Gurpreet Singh RandhawaWeb DeveloperCommented:
yes! That all depends upon your Choice, You can use it if you like it! But Professionally if you go! No Need to Chnage Color on mouse over or Mouse out. Some users may not like it

So better to to either use Default Color of Button with a Single Color or use some other Color for some the Same Button..

That's My Personal Experience.

sam15Author Commented:
IF you have 100 users you may get 50 opinions about it. I wonder if there are standards on good practices for buttons on forms.

So your idea is to leave the default color for buttns and not change anything when user moves mouse over it.
sam15Author Commented:
I notice some site use a lighter color of the button background when you point to it and change the mouse pointer to a handle to indicate it. Maybe I should use lighter greyish color and change the handle instead of showing sharp red background.
Gurpreet Singh RandhawaWeb DeveloperCommented:
that will be great
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.