HSL(342, 58%, 20%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(342,58%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 58%, 20%) | color: hsl(342, 58%, 20%) | |
| HEX | #511527 | color: #511527 | |
| RGB | rgb(81, 21, 39) | color: rgb(81, 21, 39) | |
| CMYK | cmyk(0%, 74%, 52%, 68%) | — | |
| HSV | hsv(342, 74%, 32%) | — | |
| HWB | hwb(342 8% 68%) | color: hwb(342 8% 68%) | |
| OKLCH | oklch(0.3014 0.0903 6.14) | color: oklch(0.3014 0.0903 6.14) | |
| Lab | lab(17.61 29.45 3.67) | color: lab(17.61 29.45 3.67) | |
| LCH | lch(17.61 29.68 7.1) | color: lch(17.61 29.68 7.1) |
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)
#373623 — rgb(55, 54, 35)
Deuteranopia (Green-blind)
#3B3F22 — rgb(59, 63, 34)
Tritanopia (Blue-blind)
#4E1F1E — rgb(78, 31, 30)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 58%, 20%);
text
color: hsl(342, 58%, 20%);
border
border: 2px solid hsl(342, 58%, 20%);
gradient light
background: linear-gradient(to right, hsl(342, 58%, 40%), hsl(342, 58%, 20%));
gradient dark
background: linear-gradient(to right, hsl(342, 58%, 20%), hsl(342, 58%, 0%))
hex
background-color: #511527;
tailwind
bg-[hsl(342,58%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 58%, 20%, 0.4);
css variable
--color-primary: hsl(342, 58%, 20%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(342, 58%, 20%)?
HEX: #511527 | RGB: rgb(81, 21, 39) | CMYK: 0%, 74%, 52%, 68% | HSV: 342°, 74%, 32%. Copy any format from the conversion table above.
What colors go well with #511527?
The complementary color is HSL(162, 58%, 20%). For a triadic harmony, use hues 342°, 102°, and 222°. For analogous combinations, try hues 312° and 12°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(342, 58%, 20%) in CSS?
As HSL: color: hsl(342, 58%, 20%); — As HEX: color: #511527; — As RGB: color: rgb(81, 21, 39); — Tailwind CSS: bg-[hsl(342,58%,20%)] — CSS variable: --color-primary: hsl(342, 58%, 20%);