HSL(332, 77%, 31%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(332,77%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(332, 77%, 31%) | color: hsl(332, 77%, 31%) | |
| HEX | #8C124B | color: #8C124B | |
| RGB | rgb(140, 18, 75) | color: rgb(140, 18, 75) | |
| CMYK | cmyk(0%, 87%, 46%, 45%) | — | |
| HSV | hsv(332, 87%, 55%) | — | |
| HWB | hwb(332 7% 45%) | color: hwb(332 7% 45%) | |
| OKLCH | oklch(0.4234 0.1592 359.61) | color: oklch(0.4234 0.1592 359.61) | |
| Lab | lab(30.68 51.7 -0.63) | color: lab(30.68 51.7 -0.63) | |
| LCH | lch(30.68 51.7 359.3) | color: lch(30.68 51.7 359.3) |
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)
#57563D — rgb(87, 86, 61)
Deuteranopia (Green-blind)
#5E673A — rgb(94, 103, 58)
Tritanopia (Blue-blind)
#863230 — rgb(134, 50, 48)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(332, 77%, 31%);
text
color: hsl(332, 77%, 31%);
border
border: 2px solid hsl(332, 77%, 31%);
gradient light
background: linear-gradient(to right, hsl(332, 77%, 51%), hsl(332, 77%, 31%));
gradient dark
background: linear-gradient(to right, hsl(332, 77%, 31%), hsl(332, 77%, 11%))
hex
background-color: #8C124B;
tailwind
bg-[hsl(332,77%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(332, 77%, 31%, 0.4);
css variable
--color-primary: hsl(332, 77%, 31%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(332, 77%, 31%)?
HEX: #8C124B | RGB: rgb(140, 18, 75) | CMYK: 0%, 87%, 46%, 45% | HSV: 332°, 87%, 55%. Copy any format from the conversion table above.
What colors go well with #8C124B?
The complementary color is HSL(152, 77%, 31%). 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, 77%, 31%) in CSS?
As HSL: color: hsl(332, 77%, 31%); — As HEX: color: #8C124B; — As RGB: color: rgb(140, 18, 75); — Tailwind CSS: bg-[hsl(332,77%,31%)] — CSS variable: --color-primary: hsl(332, 77%, 31%);