HSL(342, 20%, 17%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(342,20%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 20%, 17%) | color: hsl(342, 20%, 17%) | |
| HEX | #342328 | color: #342328 | |
| RGB | rgb(52, 35, 40) | color: rgb(52, 35, 40) | |
| CMYK | cmyk(0%, 33%, 23%, 80%) | — | |
| HSV | hsv(342, 33%, 20%) | — | |
| HWB | hwb(342 13% 80%) | color: hwb(342 13% 80%) | |
| OKLCH | oklch(0.2787 0.0272 359.71) | color: oklch(0.2787 0.0272 359.71) | |
| Lab | lab(15.93 9.07 -0.1) | color: lab(15.93 9.07 -0.1) | |
| LCH | lch(15.93 9.07 359.37) | color: lch(15.93 9.07 359.37) |
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)
#2D2C27 — rgb(45, 44, 39)
Deuteranopia (Green-blind)
#2E2F27 — rgb(46, 47, 39)
Tritanopia (Blue-blind)
#332626 — rgb(51, 38, 38)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 20%, 17%);
text
color: hsl(342, 20%, 17%);
border
border: 2px solid hsl(342, 20%, 17%);
gradient light
background: linear-gradient(to right, hsl(342, 20%, 37%), hsl(342, 20%, 17%));
gradient dark
background: linear-gradient(to right, hsl(342, 20%, 17%), hsl(342, 20%, 0%))
hex
background-color: #342328;
tailwind
bg-[hsl(342,20%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 20%, 17%, 0.4);
css variable
--color-primary: hsl(342, 20%, 17%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(342, 20%, 17%)?
HEX: #342328 | RGB: rgb(52, 35, 40) | CMYK: 0%, 33%, 23%, 80% | HSV: 342°, 33%, 20%. Copy any format from the conversion table above.
What colors go well with #342328?
The complementary color is HSL(162, 20%, 17%). 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, 20%, 17%) in CSS?
As HSL: color: hsl(342, 20%, 17%); — As HEX: color: #342328; — As RGB: color: rgb(52, 35, 40); — Tailwind CSS: bg-[hsl(342,20%,17%)] — CSS variable: --color-primary: hsl(342, 20%, 17%);