HSL(345, 80%, 40%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(345,80%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(345, 80%, 40%) | color: hsl(345, 80%, 40%) | |
| HEX | #B8143D | color: #B8143D | |
| RGB | rgb(184, 20, 61) | color: rgb(184, 20, 61) | |
| CMYK | cmyk(0%, 89%, 67%, 28%) | — | |
| HSV | hsv(345, 89%, 72%) | — | |
| HWB | hwb(345 8% 28%) | color: hwb(345 8% 28%) | |
| OKLCH | oklch(0.5039 0.1919 15.97) | color: oklch(0.5039 0.1919 15.97) | |
| Lab | lab(39.63 61.81 22.24) | color: lab(39.63 61.81 22.24) | |
| LCH | lch(39.63 65.69 19.79) | color: lch(39.63 65.69 19.79) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#717033 — rgb(113, 112, 51)
Deuteranopia (Green-blind)
#7B8731 — rgb(123, 135, 49)
Tritanopia (Blue-blind)
#B02B2A — rgb(176, 43, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(345, 80%, 40%);
text
color: hsl(345, 80%, 40%);
border
border: 2px solid hsl(345, 80%, 40%);
gradient light
background: linear-gradient(to right, hsl(345, 80%, 60%), hsl(345, 80%, 40%));
gradient dark
background: linear-gradient(to right, hsl(345, 80%, 40%), hsl(345, 80%, 20%))
hex
background-color: #B8143D;
tailwind
bg-[hsl(345,80%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(345, 80%, 40%, 0.4);
css variable
--color-primary: hsl(345, 80%, 40%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(345, 80%, 40%)?
HEX: #B8143D | RGB: rgb(184, 20, 61) | CMYK: 0%, 89%, 67%, 28% | HSV: 345°, 89%, 72%. Copy any format from the conversion table above.
What colors go well with #B8143D?
The complementary color is HSL(165, 80%, 40%). For a triadic harmony, use hues 345°, 105°, and 225°. For analogous combinations, try hues 315° and 15°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(345, 80%, 40%) in CSS?
As HSL: color: hsl(345, 80%, 40%); — As HEX: color: #B8143D; — As RGB: color: rgb(184, 20, 61); — Tailwind CSS: bg-[hsl(345,80%,40%)] — CSS variable: --color-primary: hsl(345, 80%, 40%);