HSL(332, 40%, 51%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(332,40%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(332, 40%, 51%) | color: hsl(332, 40%, 51%) | |
| HEX | #B4507F | color: #B4507F | |
| RGB | rgb(180, 80, 127) | color: rgb(180, 80, 127) | |
| CMYK | cmyk(0%, 56%, 29%, 29%) | — | |
| HSV | hsv(332, 56%, 71%) | — | |
| HWB | hwb(332 31% 29%) | color: hwb(332 31% 29%) | |
| OKLCH | oklch(0.572 0.1397 353.02) | color: oklch(0.572 0.1397 353.02) | |
| Lab | lab(48.23 45.73 -6.63) | color: lab(48.23 45.73 -6.63) | |
| LCH | lch(48.23 46.21 351.75) | color: lch(48.23 46.21 351.75) |
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)
#898874 — rgb(137, 136, 116)
Deuteranopia (Green-blind)
#8F9671 — rgb(143, 150, 113)
Tritanopia (Blue-blind)
#AF6B69 — rgb(175, 107, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(332, 40%, 51%);
text
color: hsl(332, 40%, 51%);
border
border: 2px solid hsl(332, 40%, 51%);
gradient light
background: linear-gradient(to right, hsl(332, 40%, 71%), hsl(332, 40%, 51%));
gradient dark
background: linear-gradient(to right, hsl(332, 40%, 51%), hsl(332, 40%, 31%))
hex
background-color: #B4507F;
tailwind
bg-[hsl(332,40%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(332, 40%, 51%, 0.4);
css variable
--color-primary: hsl(332, 40%, 51%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(332, 40%, 51%)?
HEX: #B4507F | RGB: rgb(180, 80, 127) | CMYK: 0%, 56%, 29%, 29% | HSV: 332°, 56%, 71%. Copy any format from the conversion table above.
What colors go well with #B4507F?
The complementary color is HSL(152, 40%, 51%). For a triadic harmony, use hues 332°, 92°, and 212°. For analogous combinations, try hues 302° and 2°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(332, 40%, 51%) in CSS?
As HSL: color: hsl(332, 40%, 51%); — As HEX: color: #B4507F; — As RGB: color: rgb(180, 80, 127); — Tailwind CSS: bg-[hsl(332,40%,51%)] — CSS variable: --color-primary: hsl(332, 40%, 51%);