HSL(0, 40%, 50%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(0,40%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(0, 40%, 50%) | color: hsl(0, 40%, 50%) | |
| HEX | #B34D4D | color: #B34D4D | |
| RGB | rgb(179, 77, 77) | color: rgb(179, 77, 77) | |
| CMYK | cmyk(0%, 57%, 57%, 30%) | — | |
| HSV | hsv(0, 57%, 70%) | — | |
| HWB | hwb(0 30% 30%) | color: hwb(0 30% 30%) | |
| OKLCH | oklch(0.5523 0.1335 22.45) | color: oklch(0.5523 0.1335 22.45) | |
| Lab | lab(46.22 41.52 20.77) | color: lab(46.22 41.52 20.77) | |
| LCH | lch(46.22 46.43 26.58) | color: lch(46.22 46.43 26.58) |
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)
#87864D — rgb(135, 134, 77)
Deuteranopia (Green-blind)
#8D944D — rgb(141, 148, 77)
Tritanopia (Blue-blind)
#AE4D4D — rgb(174, 77, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(0, 40%, 50%);
text
color: hsl(0, 40%, 50%);
border
border: 2px solid hsl(0, 40%, 50%);
gradient light
background: linear-gradient(to right, hsl(0, 40%, 70%), hsl(0, 40%, 50%));
gradient dark
background: linear-gradient(to right, hsl(0, 40%, 50%), hsl(0, 40%, 30%))
hex
background-color: #B34D4D;
tailwind
bg-[hsl(0,40%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(0, 40%, 50%, 0.4);
css variable
--color-primary: hsl(0, 40%, 50%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(0, 40%, 50%)?
HEX: #B34D4D | RGB: rgb(179, 77, 77) | CMYK: 0%, 57%, 57%, 30% | HSV: 0°, 57%, 70%. Copy any format from the conversion table above.
What colors go well with #B34D4D?
The complementary color is HSL(180, 40%, 50%). For a triadic harmony, use hues 0°, 120°, and 240°. For analogous combinations, try hues 330° and 30°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(0, 40%, 50%) in CSS?
As HSL: color: hsl(0, 40%, 50%); — As HEX: color: #B34D4D; — As RGB: color: rgb(179, 77, 77); — Tailwind CSS: bg-[hsl(0,40%,50%)] — CSS variable: --color-primary: hsl(0, 40%, 50%);