Text color
Bootstrap text color
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a huge discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
upgrade with discount
Bootstrap text color is a set of colors that can be used to change the font's color. A text area can also be set up to change color when a mouse hovers over it.
Material text color
Colorize text with material design text colors.
.text-default
.text-primary
.text-secondary
.text-success
.text-danger
.text-warning
.text-info
<p class="text-default">.text-default</p>
<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-info">.text-info</p>
Basic text color
Use basic text colors when you need a dark text color or you have a dark background and need a white font.
.text-light
.text-dark
.text-body
.text-muted
.text-white
.text-black-50
.text-white-50
<p class="text-light bg-dark">.text-light</p>
<p class="text-dark">.text-dark</p>
<p class="text-body">.text-body</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>
Link color
Contextual text classes also work well on anchors with the provided hover and focus states.
<p><a href="#" class="text-default">Default link</a></p>
<p><a href="#" class="text-primary">Primary link</a></p>
<p><a href="#" class="text-secondary">Secondary link</a></p>
<p><a href="#" class="text-success">Success link</a></p>
<p><a href="#" class="text-danger">Danger link</a></p>
<p><a href="#" class="text-warning">Warning link</a></p>
<p><a href="#" class="text-info">Info link</a></p>
<p><a href="#" class="text-dark">Dark link</a></p>
<p class="bg-dark"><a href="#" class="text-light">Light link</a></p>
Additional text color
MDBootstrap allows you to simply set the text color. All you have to do is add one of our color classes:
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Impedit architecto, totam hic sunt eum odio, deleniti.
Similique ex, expedita minus assumenda a magni beatae dolorum itaque.
Veritatis eum libero nam, adipisci, necessitatibus eos.
Sapiente, ea. Molestias sunt nihil saepe numquam quas perferendis.
Sapiente sit, possimus maiores, quo alias corporis cum eum nesciunt.
Corrupti adipisci, praesentium iusto eos, iure debitis modi.
Odio autem veritatis aliquam consequuntur ea voluptatibus.
Similique, adipisci ea, sequi magnam sit inventore.
Eos et vitae, odit deserunt dignissimos voluptas.
Fugit nihil numquam inventore accusantium tenetur ex est.
Sed odit inventore illum excepturi officia, reiciendis numquam modi.
At odio animi distinctio, aut enim tempora nobis error odit mollitia.
Quo at accusamus vel earum hic, inventore non, minima sint.
Iusto odit eos distinctio temporibus voluptates ad, illo repellat.
Quas fugit fuga assumenda nihil esse et culpa reiciendis voluptatum.
Excepturi iusto amet sunt illo ad debitis quibusdam eius, consequatur.
Non sint nulla incidunt, odit repellat tempore, veniam ratione fugit.
Eius, provident. Quo similique, repellat atque voluptas explicabo odio.
In consequuntur error, non consequatur expedita maxime dolorum.
<p class="red-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
<p class="pink-text">Impedit architecto, totam hic sunt eum odio, deleniti.</p>
<p class="purple-text">Similique ex, expedita minus assumenda a magni beatae dolorum itaque.</p>
<p class="deep-purple-text">Veritatis eum libero nam, adipisci, necessitatibus eos.</p>
<p class="indigo-text">Sapiente, ea. Molestias sunt nihil saepe numquam quas perferendis.</p>
<p class="blue-text">Sapiente sit, possimus maiores, quo alias corporis cum eum nesciunt.</p>
<p class="light-blue-text">Corrupti adipisci, praesentium iusto eos, iure debitis modi.</p>
<p class="cyan-text">Odio autem veritatis aliquam consequuntur ea voluptatibus.</p>
<p class="teal-text">Similique, adipisci ea, sequi magnam sit inventore.</p>
<p class="green-text">Eos et vitae, odit deserunt dignissimos voluptas.</p>
<p class="light-green-text">Fugit nihil numquam inventore accusantium tenetur ex est.</p>
<p class="lime-text">Sed odit inventore illum excepturi officia, reiciendis numquam modi.</p>
<p class="yellow-text">At odio animi distinctio, aut enim tempora nobis error odit mollitia.</p>
<p class="amber-text">Quo at accusamus vel earum hic, inventore non, minima sint.</p>
<p class="orange-text">Iusto odit eos distinctio temporibus voluptates ad, illo repellat.</p>
<p class="deep-orange-text">Quas fugit fuga assumenda nihil esse et culpa reiciendis voluptatum.</p>
<p class="brown-text">Excepturi iusto amet sunt illo ad debitis quibusdam eius, consequatur.</p>
<p class="grey-text">Non sint nulla incidunt, odit repellat tempore, veniam ratione fugit.</p>
<p class="blue-grey-text">Eius, provident. Quo similique, repellat atque voluptas explicabo odio.</p>
<p class="mdb-color white-text">In consequuntur error, non consequatur expedita maxime dolorum.</p>
Text color on hover
You can use the same colors as the above ones.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.
Card title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.
<!-- Grid row -->
<div class="row text-center">
<!-- Grid column -->
<div class="col-lg-4 col-md-12 mb-4">
<div class="card">
<div class="card-body">
<h2 class="font-weight-bold deep-orange-lighter-hover mb-3">Card title</h2>
<p class="brown-lighter-hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.</p>
</div>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-lg-4 col-md-6 mb-4">
<div class="card">
<div class="card-body">
<h2 class="font-weight-bold pink-lighter-hover mb-3">Card title</h2>
<p class="indigo-lighter-hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.</p>
</div>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-lg-4 col-md-6 mb-4">
<div class="card">
<div class="card-body">
<h2 class="font-weight-bold success-lighter-hover mb-3">Card title</h2>
<p class="grey-lighter-hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.</p>
</div>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
<!-- Grid row -->
<div class="row text-center">
<!-- Grid column -->
<div class="col-md-6 mb-4">
<div class="card indigo">
<div class="card-body">
<h2 class="font-weight-bold amber-lighter-hover mb-3">Card title</h2>
<p class="white-darker-hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.</p>
</div>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-6 mb-4">
<div class="card mdb-color">
<div class="card-body">
<h2 class="font-weight-bold cyan-lighter-hover mb-3">Card title</h2>
<p class="white-darker-hover">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque commodi, dolorum veniam ullam, explicabo deserunt, dolor soluta maxime est aliquam dignissimos, optio! Blanditiis, impedit, aliquid repudiandae vero doloremque voluptates pariatur.</p>
</div>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
.primary-lighter-hover {
color: #4285F4;
-webkit-transition: .4s;
transition: .4s; }
.primary-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #8ab4f8; }
.primary-darker-hover {
color: #4285F4;
-webkit-transition: .4s;
transition: .4s; }
.primary-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #0d5bdd; }
.danger-lighter-hover {
color: #ff3547;
-webkit-transition: .4s;
transition: .4s; }
.danger-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ff828d; }
.danger-darker-hover {
color: #ff3547;
-webkit-transition: .4s;
transition: .4s; }
.danger-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #e80015; }
.warning-lighter-hover {
color: #FF8800;
-webkit-transition: .4s;
transition: .4s; }
.warning-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ffac4d; }
.warning-darker-hover {
color: #FF8800;
-webkit-transition: .4s;
transition: .4s; }
.warning-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #b35f00; }
.success-lighter-hover {
color: #00C851;
-webkit-transition: .4s;
transition: .4s; }
.success-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #16ff74; }
.success-darker-hover {
color: #00C851;
-webkit-transition: .4s;
transition: .4s; }
.success-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #007c32; }
.info-lighter-hover {
color: #33b5e5;
-webkit-transition: .4s;
transition: .4s; }
.info-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #77ceee; }
.info-darker-hover {
color: #33b5e5;
-webkit-transition: .4s;
transition: .4s; }
.info-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #178ab4; }
.default-lighter-hover {
color: #2BBBAD;
-webkit-transition: .4s;
transition: .4s; }
.default-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #5ad9cd; }
.default-darker-hover {
color: #2BBBAD;
-webkit-transition: .4s;
transition: .4s; }
.default-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #1d7d73; }
.secondary-lighter-hover {
color: #aa66cc;
-webkit-transition: .4s;
transition: .4s; }
.secondary-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ca9fdf; }
.secondary-darker-hover {
color: #aa66cc;
-webkit-transition: .4s;
transition: .4s; }
.secondary-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #8639ac; }
.elegant-lighter-hover {
color: #2E2E2E;
-webkit-transition: .4s;
transition: .4s; }
.elegant-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #545454; }
.elegant-darker-hover {
color: #2E2E2E;
-webkit-transition: .4s;
transition: .4s; }
.elegant-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #080808; }
.unique-lighter-hover {
color: #880e4f;
-webkit-transition: .4s;
transition: .4s; }
.unique-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #cd1577; }
.unique-darker-hover {
color: #880e4f;
-webkit-transition: .4s;
transition: .4s; }
.unique-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #430727; }
.dark-green-lighter-hover {
color: #388E3C;
-webkit-transition: .4s;
transition: .4s; }
.dark-green-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #56bc5b; }
.dark-green-darker-hover {
color: #388E3C;
-webkit-transition: .4s;
transition: .4s; }
.dark-green-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #225725; }
.mdb-color-lighter-hover {
color: #59698D;
-webkit-transition: .4s;
transition: .4s; }
.mdb-color-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #8290b0; }
.mdb-color-darker-hover {
color: #59698D;
-webkit-transition: .4s;
transition: .4s; }
.mdb-color-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #3b465e; }
.red-lighter-hover {
color: #D32F2F;
-webkit-transition: .4s;
transition: .4s; }
.red-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #e06e6e; }
.red-darker-hover {
color: #D32F2F;
-webkit-transition: .4s;
transition: .4s; }
.red-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #962020; }
.pink-lighter-hover {
color: #ec407a;
-webkit-transition: .4s;
transition: .4s; }
.pink-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #f386aa; }
.pink-darker-hover {
color: #ec407a;
-webkit-transition: .4s;
transition: .4s; }
.pink-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #cb1452; }
.purple-lighter-hover {
color: #8e24aa;
-webkit-transition: .4s;
transition: .4s; }
.purple-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #b843d7; }
.purple-darker-hover {
color: #8e24aa;
-webkit-transition: .4s;
transition: .4s; }
.purple-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #59176b; }
.deep-purple-lighter-hover {
color: #512da8;
-webkit-transition: .4s;
transition: .4s; }
.deep-purple-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #7651d0; }
.deep-purple-darker-hover {
color: #512da8;
-webkit-transition: .4s;
transition: .4s; }
.deep-purple-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #341d6c; }
.indigo-lighter-hover {
color: #3f51b5;
-webkit-transition: .4s;
transition: .4s; }
.indigo-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #7280ce; }
.indigo-darker-hover {
color: #3f51b5;
-webkit-transition: .4s;
transition: .4s; }
.indigo-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #2b387c; }
.blue-lighter-hover {
color: #1976D2;
-webkit-transition: .4s;
transition: .4s; }
.blue-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #4e9cea; }
.blue-darker-hover {
color: #1976D2;
-webkit-transition: .4s;
transition: .4s; }
.blue-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #11508e; }
.light-blue-lighter-hover {
color: #82B1FF;
-webkit-transition: .4s;
transition: .4s; }
.light-blue-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #cfe1ff; }
.light-blue-darker-hover {
color: #82B1FF;
-webkit-transition: .4s;
transition: .4s; }
.light-blue-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #3681ff; }
.cyan-lighter-hover {
color: #00bcd4;
-webkit-transition: .4s;
transition: .4s; }
.cyan-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #22e6ff; }
.cyan-darker-hover {
color: #00bcd4;
-webkit-transition: .4s;
transition: .4s; }
.cyan-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #007888; }
.teal-lighter-hover {
color: #00796b;
-webkit-transition: .4s;
transition: .4s; }
.teal-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #00c6af; }
.teal-darker-hover {
color: #00796b;
-webkit-transition: .4s;
transition: .4s; }
.teal-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #002d27; }
.green-lighter-hover {
color: #388E3C;
-webkit-transition: .4s;
transition: .4s; }
.green-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #56bc5b; }
.green-darker-hover {
color: #388E3C;
-webkit-transition: .4s;
transition: .4s; }
.green-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #225725; }
.light-green-lighter-hover {
color: #8bc34a;
-webkit-transition: .4s;
transition: .4s; }
.light-green-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #b0d683; }
.light-green-darker-hover {
color: #8bc34a;
-webkit-transition: .4s;
transition: .4s; }
.light-green-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #649130; }
.lime-lighter-hover {
color: #afb42b;
-webkit-transition: .4s;
transition: .4s; }
.lime-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #d2d655; }
.lime-darker-hover {
color: #afb42b;
-webkit-transition: .4s;
transition: .4s; }
.lime-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #73761c; }
.yellow-lighter-hover {
color: #fbc02d;
-webkit-transition: .4s;
transition: .4s; }
.yellow-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #fcd778; }
.yellow-darker-hover {
color: #fbc02d;
-webkit-transition: .4s;
transition: .4s; }
.yellow-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #d79b04; }
.amber-lighter-hover {
color: #ffa000;
-webkit-transition: .4s;
transition: .4s; }
.amber-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ffbd4d; }
.amber-darker-hover {
color: #ffa000;
-webkit-transition: .4s;
transition: .4s; }
.amber-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #b37000; }
.orange-lighter-hover {
color: #f57c00;
-webkit-transition: .4s;
transition: .4s; }
.orange-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ffa243; }
.orange-darker-hover {
color: #f57c00;
-webkit-transition: .4s;
transition: .4s; }
.orange-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #a95500; }
.deep-orange-lighter-hover {
color: #ff7043;
-webkit-transition: .4s;
transition: .4s; }
.deep-orange-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #ffaa90; }
.deep-orange-darker-hover {
color: #ff7043;
-webkit-transition: .4s;
transition: .4s; }
.deep-orange-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #f63b00; }
.brown-lighter-hover {
color: #795548;
-webkit-transition: .4s;
transition: .4s; }
.brown-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #a57868; }
.brown-darker-hover {
color: #795548;
-webkit-transition: .4s;
transition: .4s; }
.brown-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #49332b; }
.grey-lighter-hover {
color: #616161;
-webkit-transition: .4s;
transition: .4s; }
.grey-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #878787; }
.grey-darker-hover {
color: #616161;
-webkit-transition: .4s;
transition: .4s; }
.grey-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #3b3b3b; }
.blue-grey-lighter-hover {
color: #78909c;
-webkit-transition: .4s;
transition: .4s; }
.blue-grey-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #a4b4bc; }
.blue-grey-darker-hover {
color: #78909c;
-webkit-transition: .4s;
transition: .4s; }
.blue-grey-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #546973; }
.white-lighter-hover {
color: #fff;
-webkit-transition: .4s;
transition: .4s; }
.white-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: white; }
.white-darker-hover {
color: #fff;
-webkit-transition: .4s;
transition: .4s; }
.white-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #d9d9d9; }
.black-lighter-hover {
color: #000;
-webkit-transition: .4s;
transition: .4s; }
.black-lighter-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: #262626; }
.black-darker-hover {
color: #000;
-webkit-transition: .4s;
transition: .4s; }
.black-darker-hover:hover {
-webkit-transition: .4s;
transition: .4s;
color: black; }