To set a background color in JavaScript, you can easily manipulate the Document Object Model (DOM). Use the `style` property of an element to change its background color. For example: `document.body.style.backgroundColor = 'lightblue';` You can also apply colors using hexadecimal codes or RGB values to create vibrant designs.