HSL(342, 97%, 34%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(342,97%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 97%, 34%) | color: hsl(342, 97%, 34%) | |
| HEX | #AB0335 | color: #AB0335 | |
| RGB | rgb(171, 3, 53) | color: rgb(171, 3, 53) | |
| CMYK | cmyk(0%, 98%, 69%, 33%) | — | |
| HSV | hsv(342, 98%, 67%) | — | |
| HWB | hwb(342 1% 33%) | color: hwb(342 1% 33%) | |
| OKLCH | oklch(0.4717 0.1872 16.1) | color: oklch(0.4717 0.1872 16.1) | |
| Lab | lab(35.95 60.37 22.1) | color: lab(35.95 60.37 22.1) | |
| LCH | lch(35.95 64.29 20.11) | color: lch(35.95 64.29 20.11) |
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)
#626129 — rgb(98, 97, 41)
Deuteranopia (Green-blind)
#6C7926 — rgb(108, 121, 38)
Tritanopia (Blue-blind)
#A31F1D — rgb(163, 31, 29)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 97%, 34%);
text
color: hsl(342, 97%, 34%);
border
border: 2px solid hsl(342, 97%, 34%);
gradient light
background: linear-gradient(to right, hsl(342, 97%, 54%), hsl(342, 97%, 34%));
gradient dark
background: linear-gradient(to right, hsl(342, 97%, 34%), hsl(342, 97%, 14%))
hex
background-color: #AB0335;
tailwind
bg-[hsl(342,97%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 97%, 34%, 0.4);
css variable
--color-primary: hsl(342, 97%, 34%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(342, 97%, 34%)?
HEX: #AB0335 | RGB: rgb(171, 3, 53) | CMYK: 0%, 98%, 69%, 33% | HSV: 342°, 98%, 67%. Copy any format from the conversion table above.
What colors go well with #AB0335?
The complementary color is HSL(162, 97%, 34%). 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, 97%, 34%) in CSS?
As HSL: color: hsl(342, 97%, 34%); — As HEX: color: #AB0335; — As RGB: color: rgb(171, 3, 53); — Tailwind CSS: bg-[hsl(342,97%,34%)] — CSS variable: --color-primary: hsl(342, 97%, 34%);