Palatal consonant
Palatal consonants are sounds made by raising the body of the tongue toward the hard palate. The hard palate is the middle part of the roof of the mouth. They are a type of consonant, and they are articulated in this way.
Some consonants are made with the tip of the tongue curled back against the roof of the mouth. These are called retroflex. They are made in a different way, even though both use the roof of the mouth.
Ambiguity of terminology
The word palatal is often used loosely for postalveolar consonants that are laminal, palatalized, or both. This is often true when there are no real palatals that sound different from them. This often refers to alveolo-palatal consonants. This is especially true for the letters ⟨ɲ⟩ and ⟨ʎ⟩, which would often be more accurately written as ⟨n̠ʲ⟩ and ⟨l̠ʲ⟩. Palato-alveolar consonants, such as ⟨ʃ⟩ and ⟨ʒ⟩, are also often called just palatal.
Palatal consonants are sometimes called domal or cacuminal, but these words are usually used only for retroflex consonants. The term (alveolo-)palatal is usually used for laminal consonants or dorsal consonants. Sometimes palatal is used for palatovelar consonants, which are palatalized or advanced velar consonants. These are also called postpalatal or prevelar consonants. Sometimes palatovelar is used for more typical palatal consonants.
The most common palatal sound is the approximant [j]. It is one of the ten most common sounds in the world's languages. The nasal [ɲ] is also common, found in about 35 percent of the world's languages. In most of those languages, its matching obstruent is not the stop c but the affricate t͡ʃ. Only a few languages in northern Eurasia, the Americas and central Africa contrast palatal stops with postalveolar affricates. These include Hungarian, Czech, Latvian, Macedonian, Slovak, Turkish and Albanian.
Other consonants can be palatalized. This means the top of the tongue also rises toward the hard palate. For example, English [ʃ] (spelled sh) has this palatal part, even though its main sound is made with the tip of the tongue and the upper gum. This kind of articulation is called palatoalveolar. In phonology, alveolo-palatal, palatoalveolar and palatovelar consonants are often grouped together as palatals, since these types rarely contrast with true palatals. Sometimes palatalized alveolars or dentals are analyzed the same way.
See also: Alveolo-palatal consonant § Contrast with palatovelars
Palatal consonants have their main articulation toward or touching the hard palate. Palatalized consonants have their main articulation in another area. They also have a secondary articulation that moves toward the hard palate. Both palatal and palatalized consonants are single phonemes. A consonant followed by a /j/ sound is usually two phonemes. Palatal consonants in general do not contrast with palatalized velars.
Languages differ in how they make these sounds. Irish and Spanish show some of these differences, but many speakers do not hear them clearly. Speakers of English have sequences of a consonant and /j/ but no separate palatal sounds. So they often pronounce these sequences as a single palatal or palatalized consonant because of coarticulation.
Examples
For a table of examples of these sounds in the Romance languages, see Palatalization (sound change) § Mouillé.

Quiz time!
4 questions about Palatal consonant
What is the hard palate?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Palatal consonant, available under CC BY-SA 4.0.