HSL(311, 72%, 41%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(311,72%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(311, 72%, 41%) | color: hsl(311, 72%, 41%) | |
| HEX | #B41D98 | color: #B41D98 | |
| RGB | rgb(180, 29, 152) | color: rgb(180, 29, 152) | |
| CMYK | cmyk(0%, 84%, 16%, 29%) | — | |
| HSV | hsv(311, 84%, 71%) | — | |
| HWB | hwb(311 11% 29%) | color: hwb(311 11% 29%) | |
| OKLCH | oklch(0.5336 0.217 337.53) | color: oklch(0.5336 0.217 337.53) | |
| Lab | lab(42.54 67.74 -30.46) | color: lab(42.54 67.74 -30.46) | |
| LCH | lch(42.54 74.27 335.79) | color: lch(42.54 74.27 335.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)
#73717A — rgb(115, 113, 122)
Deuteranopia (Green-blind)
#7B8773 — rgb(123, 135, 115)
Tritanopia (Blue-blind)
#AC635E — rgb(172, 99, 94)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(311, 72%, 41%);
text
color: hsl(311, 72%, 41%);
border
border: 2px solid hsl(311, 72%, 41%);
gradient light
background: linear-gradient(to right, hsl(311, 72%, 61%), hsl(311, 72%, 41%));
gradient dark
background: linear-gradient(to right, hsl(311, 72%, 41%), hsl(311, 72%, 21%))
hex
background-color: #B41D98;
tailwind
bg-[hsl(311,72%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(311, 72%, 41%, 0.4);
css variable
--color-primary: hsl(311, 72%, 41%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(311, 72%, 41%)?
HEX: #B41D98 | RGB: rgb(180, 29, 152) | CMYK: 0%, 84%, 16%, 29% | HSV: 311°, 84%, 71%. Copy any format from the conversion table above.
What colors go well with #B41D98?
The complementary color is HSL(131, 72%, 41%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(311, 72%, 41%) in CSS?
As HSL: color: hsl(311, 72%, 41%); — As HEX: color: #B41D98; — As RGB: color: rgb(180, 29, 152); — Tailwind CSS: bg-[hsl(311,72%,41%)] — CSS variable: --color-primary: hsl(311, 72%, 41%);