HSL(351, 77%, 40%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(351,77%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(351, 77%, 40%) | color: hsl(351, 77%, 40%) | |
| HEX | #B5172F | color: #B5172F | |
| RGB | rgb(181, 23, 47) | color: rgb(181, 23, 47) | |
| CMYK | cmyk(0%, 87%, 74%, 29%) | — | |
| HSV | hsv(351, 87%, 71%) | — | |
| HWB | hwb(351 9% 29%) | color: hwb(351 9% 29%) | |
| OKLCH | oklch(0.4973 0.188 21.18) | color: oklch(0.4973 0.188 21.18) | |
| Lab | lab(38.98 59.82 30.02) | color: lab(38.98 59.82 30.02) | |
| LCH | lch(38.98 66.93 26.65) | color: lch(38.98 66.93 26.65) |
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)
#716F29 — rgb(113, 111, 41)
Deuteranopia (Green-blind)
#7A8628 — rgb(122, 134, 40)
Tritanopia (Blue-blind)
#AD2524 — rgb(173, 37, 36)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(351, 77%, 40%);
text
color: hsl(351, 77%, 40%);
border
border: 2px solid hsl(351, 77%, 40%);
gradient light
background: linear-gradient(to right, hsl(351, 77%, 60%), hsl(351, 77%, 40%));
gradient dark
background: linear-gradient(to right, hsl(351, 77%, 40%), hsl(351, 77%, 20%))
hex
background-color: #B5172F;
tailwind
bg-[hsl(351,77%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(351, 77%, 40%, 0.4);
css variable
--color-primary: hsl(351, 77%, 40%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(351, 77%, 40%)?
HEX: #B5172F | RGB: rgb(181, 23, 47) | CMYK: 0%, 87%, 74%, 29% | HSV: 351°, 87%, 71%. Copy any format from the conversion table above.
What colors go well with #B5172F?
The complementary color is HSL(171, 77%, 40%). For a triadic harmony, use hues 351°, 111°, and 231°. For analogous combinations, try hues 321° and 21°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(351, 77%, 40%) in CSS?
As HSL: color: hsl(351, 77%, 40%); — As HEX: color: #B5172F; — As RGB: color: rgb(181, 23, 47); — Tailwind CSS: bg-[hsl(351,77%,40%)] — CSS variable: --color-primary: hsl(351, 77%, 40%);