Bootstrap Colors

Alerts Color

v5 alerts color v4 alerts color
alert-primary
alert-primary
alert-secondary
alert-secondary
alert-success
alert-success
alert-danger
alert-danger
alert-warning
alert-warning
alert-info
alert-info
alert-light
alert-light
alert-dark
alert-dark

Background Color

class name v5 bg-color v4 bg-color
bg-primary #0d6efd #007bff
bg-secondary #6c757d #6c757d
bg-success #198754 #28a745
bg-danger #dc3545 #dc3545
bg-warning #ffc107 #ffc107
bg-info #0dcaf0 #17a2b8
bg-light #f8f9fa #f8f9fa
bg-dark #212529 #343a40
bg-white #fff #fff
bg-transparent transparent transparent

Badge Color

v5 badge color v4 badge color
bg-primary badge-primary
bg-secondary badge-secondary
bg-success badge-success
bg-danger badge-danger
bg-warning badge-warning
bg-info badge-info
bg-light badge-light
bg-dark badge-dark

Button Color

v5 button hover color
#0069d9
#0069d9
#5a6268
#5a6268
#218838
#218838
#c82333
#c82333
#e0a800
#e0a800
#138496
#138496
#e2e6ea
#e2e6ea
#23272b
#23272b

Text Color

v5 text color v4 text color
text-primary text-primary
text-secondary text-secondary
text-success text-success
text-danger text-danger
text-warning text-warning
text-info text-info
text-light text-light
text-dark text-dark
text-body text-body
text-muted text-muted
text-white text-white
text-black-50 text-black-50
text-white-50 text-white-50

scss root color

v5 root color v4 root color
--bs-blue #0d6efd --blue #007bff
--bs-indigo #6610f2 --indigo #6610f2
--bs-purple #6f42c1 --purple #6f42c1
--bs-pink #d63384 --pink #e83e8c
--bs-red #dc3545 --red #dc3545
--bs-orange #fd7e14 --orange #fd7e14
--bs-yellow #ffc107 --yellow #ffc107
--bs-green #198754 --green #28a745
--bs-teal #20c997 --teal #20c997
--bs-cyan #0dcaf0 --cyan #17a2b8
--bs-white #fff --white #fff
--bs-gray #6c757d --gray #6c757d
--bs-gray-dark #343a40 --gray-dark #343a40
--bs-primary #0d6efd --primary #007bff
--bs-secondary #6c757d --secondary #6c757d
--bs-success #198754 --success #28a745
--bs-info #0dcaf0 --info #17a2b8
--bs-warning #ffc107 --warning #ffc107
--bs-danger #dc3545 --danger #dc3545
--bs-light #f8f9fa --light #f8f9fa
--bs-dark #212529 --dark #343a40

資料來源