Install some molding. Visibly divide the wall by placing some round molding running down the wall between the two rooms. In doing so, you can craft a natural divider to separate your paint hues.
Create a line with tape. Paint one half of the wall, allowing the hue to run over into the other side slightly. After the paint dries, using a level, run a piece of tape down the wall, separating the wall where your two rooms meet. Paint the other half of your wall the different hue to finish your look. Remove the tape to create your line.
Feather your paints. If your paint hues are similar, you may find success in feathering them. To create this look, paint a strip of one hue and a strip of the other where the walls meet. Using a soft cloth, rub back and forth between the two hues while the paints are still wet, creating a soft mixing of the two. Don't attempt this option if the hues are very different from each other. For example, if one room will be burgundy and the other lilac, this option likely won't work.
Select a different hue that complements both pallets for the shared wall. Instead of splitting the wall, select a different hue for this shared wall than for the other walls in your space. For example, if your kitchen is sage green and your family room light blue, and the two share a wall, select a neutral tan that will fit with both hues for this shared wall.