BOOTSTRAP THEMING GUIDE
Bootstrap Color Palette Generator – Create Custom Bootstrap 5 Theme Colors Online Free
Looking for a free Bootstrap color palette generator that turns one brand color into a complete, ready-to-use Bootstrap theme? Our Bootstrap theme color generator lets you choose a primary color and instantly see how the entire Bootstrap 5 color system will look, including primary, secondary, success, info, warning, danger, light and dark. Every theme color also gets a full Bootstrap-style shade scale from 100 to 900, a live preview with buttons, alerts, badges and progress bars, and copy-ready code you can paste straight into your project. There is no signup, no software to install and no watermark. Whether you want to change the Bootstrap primary color, build a custom Bootstrap 5.3 theme with Sass, override Bootstrap with CSS variables, or simply find a Bootstrap color scheme that matches your logo, this online Bootstrap color scheme generator saves hours of trial and error. It is made for web developers, UI designers, freelancers, students and agencies who want a professional custom Bootstrap palette without guessing HEX codes.
8
Bootstrap Theme Colors Generator
Generate all eight Bootstrap theme colors from your own brand color. Start from the Bootstrap default palette, harmonize the semantic colors around your primary hue, or try a random theme for inspiration. Each color stays fully editable, so you always keep control over the final result.
100
Bootstrap Color Shades 100 to 900
Get a nine-step color scale for every theme color, built with the same tint and shade logic Bootstrap 5.3 uses for its own blue-100 to blue-900 variables. Use the lighter steps for subtle backgrounds and borders, and the darker steps for text emphasis, hover states and dark mode surfaces.
</>
Sass, CSS Variables and Button Code
Export Sass variables for a proper custom Bootstrap build, CSS custom properties for quick runtime overrides, complete button override blocks with hover and active colors, a scale file or clean JSON. Copy it, paste it and your custom Bootstrap color palette is live.
How to Generate a Bootstrap Color Palette Online (Step by Step)
Creating a custom Bootstrap color palette used to mean editing Sass variables, rebuilding your CSS and refreshing the browser over and over to see what a color looked like on a button or an alert. This Bootstrap color palette generator shows the result immediately, so you can judge your theme visually before you write a single line of code. Follow these steps to build a Bootstrap 5 color scheme from scratch.
-
Set your primary color: Click the primary color box or type a HEX code such as #6610F2. This is the color used for main buttons, links, active states and focus rings across your site.
-
Choose a starting point: Press Bootstrap default to reset the other colors to the standard Bootstrap 5 palette, press Harmonize from primary to get secondary, success, info, warning, danger, light and dark colors that match your primary hue, or press Random theme for fresh ideas.
-
Edit any theme color: Change individual colors with the color picker or HEX field. The preview, the shade scales and the exported code update live as you type.
-
Check the live preview: Review solid buttons, outline buttons, alerts, badges and the progress bar to make sure text is readable and every color feels consistent.
-
Copy your code: Switch between Sass, CSS, Buttons, Scales and JSON, then press Copy code and paste it into your stylesheet, theme file or design token setup.
Because every setting works instantly, it is easy to test several brand colors in a few minutes and compare how each one behaves on buttons, links and alerts before you decide.
Bootstrap 5 Default Theme Colors and What They Are Used For
Bootstrap ships with eight semantic theme colors. Each one has a job, and understanding those jobs makes it much easier to design a custom Bootstrap palette that feels natural to users. Primary is your brand color and the default for call-to-action buttons and links. Secondary is a quieter supporting color. Success, info, warning and danger communicate status, and light and dark are neutral surfaces and text colors. The table below lists the default Bootstrap 5 HEX values and the usual role of each color, which is a helpful reference when you decide what to change and what to keep.
Bootstrap 5 default theme colors
| Theme color |
Default HEX |
Typical use |
| Primary |
#0D6EFD |
Main buttons, links, active navigation, focus states |
| Secondary |
#6C757D |
Secondary buttons, muted actions, supporting UI |
| Success |
#198754 |
Confirmations, completed steps, positive alerts |
| Info |
#0DCAF0 |
Neutral notices, tips, informational badges |
| Warning |
#FFC107 |
Cautions, pending states, attention messages |
| Danger |
#DC3545 |
Errors, destructive actions, validation failures |
| Light |
#F8F9FA |
Light backgrounds, cards, table stripes |
| Dark |
#212529 |
Dark navbars, footers, high-contrast text |
Most brands only need to change the primary color and, optionally, the secondary color. The semantic status colors usually work best when they stay recognizable, because users instantly associate green with success and red with errors. That is why the Harmonize option keeps those hues familiar while adjusting their saturation and lightness so they sit comfortably next to your primary.
How Bootstrap Color Shades 100 to 900 Are Calculated
Since Bootstrap 5.3, every base color such as blue, indigo or red comes with a nine-step scale from 100 to 900, and 500 is the original color. The lighter steps are tints, which mix the color with white. The darker steps are shades, which mix the color with black. Bootstrap uses fixed mixing weights, and this generator applies the same logic to every theme color you create, so your custom palette follows the same rhythm as the framework itself.
Bootstrap 5.3 color scale mixing weights
| Step |
Method |
Mix amount |
Common use |
| 100 |
Tint (white) |
80% |
Subtle backgrounds |
| 200 |
Tint (white) |
60% |
Subtle borders |
| 300 |
Tint (white) |
40% |
Hover surfaces, dividers |
| 400 |
Tint (white) |
20% |
Soft accents, dark mode links |
| 500 |
Base color |
0% |
Your original theme color |
| 600 |
Shade (black) |
20% |
Hover and active states |
| 700 |
Shade (black) |
40% |
Pressed states, strong accents |
| 800 |
Shade (black) |
60% |
Emphasis text |
| 900 |
Shade (black) |
80% |
Dark surfaces, deepest text |
In Bootstrap 5.3 the subtle background, subtle border and text emphasis colors for alerts and badges are taken from these same steps. For light mode, the subtle background uses the 100 level, the subtle border uses the 200 level and the emphasis text uses the 800 level. Seeing the whole scale next to your theme colors makes it easy to understand how a single brand color can drive backgrounds, borders, hover states and typography without adding any extra colors.
How to Change the Bootstrap Primary Color With Sass
The recommended way to create a custom Bootstrap theme is to override Sass variables before Bootstrap is imported. Create your own stylesheet, paste the generated variables at the top, and then import Bootstrap below them. Because Bootstrap declares its defaults with the !default flag, your values win and the framework recalculates everything that depends on them, including button states, form focus rings, link colors, alerts, badges, list groups and the generated utility classes such as text-primary and bg-primary.
-
Install the Bootstrap source: Add Bootstrap with npm or Composer so its Sass files are available in your project.
-
Create a custom stylesheet: Make a file such as custom.scss in your assets folder.
-
Paste the Sass export: Copy the Sass tab from this generator and place it at the very top of your custom.scss file.
-
Import Bootstrap after the variables: Add
@import "bootstrap/scss/bootstrap"; below your color variables, then compile with your build tool, such as Vite, Webpack or the Sass command line.
-
Use the compiled CSS: Link the compiled file in your layout instead of the Bootstrap CDN stylesheet.
This approach produces the smallest, cleanest result because Bootstrap generates every color-dependent rule from your palette at build time. It is also the best choice for Laravel projects that already use Vite, and for any team that wants a single source of truth for brand colors.
Bootstrap CSS Variables vs Sass: Which Should You Use?
Bootstrap 5 exposes many colors as CSS custom properties such as --bs-primary and --bs-primary-rgb, which makes quick overrides possible without a build step. This is useful when you load Bootstrap from a CDN, when you work inside a CMS, or when you only want to prototype a color change. It is important to know the limits, though. Components such as buttons read their own variables, for example --bs-btn-bg and --bs-btn-hover-bg, so changing --bs-primary alone will not recolor every .btn-primary. That is exactly why this generator includes a Buttons export with complete override blocks for hover, active, disabled and focus states.
Sass variables vs CSS variables for Bootstrap colors
| Feature |
Sass variables |
CSS variables and overrides |
| Build step |
Required |
Not required |
| Recolors every component |
Yes, automatically |
Only where variables or overrides are set |
| Works with CDN Bootstrap |
No |
Yes |
| Best for |
Production themes and design systems |
Prototypes, CMS sites and quick fixes |
As a rule of thumb, use Sass for real projects and use the CSS and Buttons exports when you cannot compile Sass. Many teams combine both: Sass for the base theme and CSS variables for small runtime tweaks, such as switching a color per customer or per page.
Bootstrap 5.3 Dark Mode, Subtle Colors and Color Modes
Bootstrap 5.3 introduced color modes, which let you switch an entire page or a single component between light and dark by adding data-bs-theme="dark" to an element. It also introduced subtle background colors, subtle border colors and text emphasis colors for each theme color, and those are what alerts, list groups and many badges now use. A good Bootstrap palette therefore has to work in both modes. Light tints such as the 100 and 200 steps are ideal for light mode backgrounds, while the 800 and 900 steps give you natural dark mode surfaces, and the 300 and 400 steps are useful for links and text on dark backgrounds.
When you choose a primary color, test it against both a white page and a dark page. A color that looks vibrant on white can feel heavy on a dark background, and a very light brand color can fail contrast on white. The scale shown under each theme color helps you pick lighter or darker alternatives for each mode without leaving the brand hue.
Accessible Bootstrap Colors: Contrast and Readable Buttons
Accessibility should be part of every Bootstrap color scheme. The Web Content Accessibility Guidelines recommend a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text and interface components such as button borders and focus indicators. Bootstrap handles part of this for you with a color contrast function that chooses white or black text for each button background. This generator follows the same idea: it tries white text first, and switches to black text when white would fall below 4.5 to 1. That is why a yellow warning button or a cyan info button gets dark text, while a deep blue primary button gets white text.
- Avoid very light primary colors: Pale brand colors rarely reach enough contrast with white text and often make links hard to read on white backgrounds.
- Keep status colors recognizable: Green, red, amber and blue are understood worldwide, so adjust their lightness rather than their hue.
- Do not rely on color alone: Pair color with icons, labels or text so users with color vision deficiency understand the message.
- Test hover and focus states: The Buttons export includes darker hover and active colors, so check that they stay distinguishable from the default state.
Bootstrap Color Palette Ideas for Different Websites
The best primary color depends on the audience and the mood you want to create. Here are common directions that work well with Bootstrap’s neutral grays and status colors, so you can start with a proven idea and refine it with the generator.
- SaaS and dashboards: Deep blues, indigos and violets feel trustworthy and modern, and they work well with Bootstrap’s default neutrals.
- E-commerce and marketplaces: Warm oranges, reds and magentas encourage action, but keep the danger color distinct so errors never look like promotions.
- Healthcare, wellness and education: Teals, greens and soft blues communicate calm, care and clarity.
- Finance and corporate sites: Navy, slate and dark teal suggest stability, with a single bright accent for important actions.
- Blogs, portfolios and agencies: Bold, distinctive primaries such as emerald, crimson or electric purple help a small site stand out.
Bootstrap 4 vs Bootstrap 5 vs Bootstrap 5.3 Color Support
The generated HEX codes work with every Bootstrap version, because a color is just a color. What changes between versions is how the framework consumes it, so choose the export that matches the version you use.
Bootstrap version compatibility
| Version |
Sass theme colors |
CSS variables |
Best export |
| Bootstrap 4 |
Yes |
Limited |
Sass |
| Bootstrap 5.0 to 5.2 |
Yes |
Partial |
Sass and Buttons |
| Bootstrap 5.3 |
Yes, plus scales |
Extensive, with color modes |
Sass, CSS and Scales |
The same palette also works with frameworks built on Bootstrap, such as React-Bootstrap, Bootstrap Vue, ng-bootstrap and many WordPress and admin dashboard themes, as long as they let you override Sass variables or CSS custom properties.
Tips for Choosing a Great Bootstrap Color Scheme
A few simple habits make custom Bootstrap themes look polished and keep them easy to maintain. Use these tips whenever you build a Bootstrap color palette online or revise an existing theme.
- Start with one strong primary: Choose a brand color with medium lightness so you have room for lighter tints and darker shades.
- Keep secondary quiet: A desaturated version of your primary hue or a neutral gray makes secondary buttons feel supportive instead of competing.
- Limit your accents: Too many bright colors weaken hierarchy, so let the primary lead and use status colors only for meaning.
- Reuse the scale: Build backgrounds, borders and hover states from the 100 to 900 steps instead of adding unrelated colors.
- Document your tokens: Export the JSON or Scales code and keep it in your repository so designers and developers use identical values.
Free Bootstrap Color Generator for Any Device, No Software Needed
Our Bootstrap color palette generator runs in your web browser, so you can use it on Windows, Mac, Linux, Android and iPhone without installing anything. Whether you are searching for a Bootstrap theme color generator for Laravel, a Bootstrap 5 color scheme tool for a client project or a quick way to generate Bootstrap color shades for a landing page, the workflow is the same in any modern browser. Open the page, choose your colors, check the preview and copy your code. There is no account to create, nothing to download and no watermark, and the colors you pick are never uploaded.
It also pairs well with the rest of your toolkit. Generate the palette here, paste the Sass into your project, then use the other free color tools on our site to explore tints, shades and harmonies in more depth.
Free Online Bootstrap Palette Generator: Fast, Visual and Developer-Ready
Our free Bootstrap color palette generator was built to make Bootstrap theming simple. If you want a Bootstrap theme color generator that shows a live preview, creates 100 to 900 color shades, handles accessible button text and exports Sass, CSS and JSON, this page gives you everything in one place. Choose your primary color, adjust the theme and copy a production-ready palette in minutes.
Ready to try it? Scroll back up, pick your brand color and generate your custom Bootstrap palette now. If you also work with other files and formats, explore the other free tools on our site.