Hi @hemantkelanka,
The thing you are telling is already implemented in a configurable product. Did you try a configurable product?
Just create your attribute name as color_pallate and add your colors. Even color is also there.
The next step is to create an attribute for size.
Now assign both attributes to your attribute family.