Data Science

Customizing Colors and Styles

SQL Mastery Team
June 7, 2026
5 min read

It's **Day 137**, and we're talking about Brand. Data is more persuasive when it looks beautiful.

Seaborn Palettes

# 'magma', 'viridius', 'rocket' are some favorites

sns.set_palette("magma")

# Or a custom list of Hex codes

my_colors = ["#FF5733", "#33FF57", "#3357FF"]

sns.set_palette(sns.color_palette(my_colors))

The Psychology of Color

  • **Sequential**: Light to dark for numbers (e.g., Temperature).
  • **Diverging**: Two colors for "Good vs Bad" (e.g., Profit vs Loss).
  • **Categorical**: Distinct colors for different groups (e.g., Apples vs Oranges).
  • Your Task for Today

    Choose a "Diverging" color palette and apply it to a Heatmap or a Bar Chart.

    *Day 138: Best Practices for Data Storytelling.*

    Ready to put your knowledge into practice?

    Join SQL Mastery and learn through interactive exercises.