HSL(342, 74%, 27%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(342,74%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 74%, 27%) | color: hsl(342, 74%, 27%) | |
| HEX | #781230 | color: #781230 | |
| RGB | rgb(120, 18, 48) | color: rgb(120, 18, 48) | |
| CMYK | cmyk(0%, 85%, 60%, 53%) | — | |
| HSV | hsv(342, 85%, 47%) | — | |
| HWB | hwb(342 7% 53%) | color: hwb(342 7% 53%) | |
| OKLCH | oklch(0.3767 0.1353 10.51) | color: oklch(0.3767 0.1353 10.51) | |
| Lab | lab(25.68 43.89 9.87) | color: lab(25.68 43.89 9.87) | |
| LCH | lch(25.68 44.99 12.67) | color: lch(25.68 44.99 12.67) |
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)
#4C4B29 — rgb(76, 75, 41)
Deuteranopia (Green-blind)
#525927 — rgb(82, 89, 39)
Tritanopia (Blue-blind)
#732322 — rgb(115, 35, 34)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 74%, 27%);
text
color: hsl(342, 74%, 27%);
border
border: 2px solid hsl(342, 74%, 27%);
gradient light
background: linear-gradient(to right, hsl(342, 74%, 47%), hsl(342, 74%, 27%));
gradient dark
background: linear-gradient(to right, hsl(342, 74%, 27%), hsl(342, 74%, 7%))
hex
background-color: #781230;
tailwind
bg-[hsl(342,74%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 74%, 27%, 0.4);
css variable
--color-primary: hsl(342, 74%, 27%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(342, 74%, 27%)?
HEX: #781230 | RGB: rgb(120, 18, 48) | CMYK: 0%, 85%, 60%, 53% | HSV: 342°, 85%, 47%. Copy any format from the conversion table above.
What colors go well with #781230?
The complementary color is HSL(162, 74%, 27%). 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, 74%, 27%) in CSS?
As HSL: color: hsl(342, 74%, 27%); — As HEX: color: #781230; — As RGB: color: rgb(120, 18, 48); — Tailwind CSS: bg-[hsl(342,74%,27%)] — CSS variable: --color-primary: hsl(342, 74%, 27%);