HSL(342, 74%, 45%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(342,74%,45%)]

Color Conversions

Format Value CSS Usage
HSL hsl(342, 74%, 45%) color: hsl(342, 74%, 45%)
HEX #C81E51 color: #C81E51
RGB rgb(200, 30, 81) color: rgb(200, 30, 81)
CMYK cmyk(0%, 85%, 60%, 22%)
HSV hsv(342, 85%, 78%)
HWB hwb(342 12% 22%) color: hwb(342 12% 22%)
OKLCH oklch(0.5427 0.2011 11.33) color: oklch(0.5427 0.2011 11.33)
Lab lab(43.95 65.2 15.95) color: lab(43.95 65.2 15.95)
LCH lch(43.95 67.12 13.75) color: lch(43.95 67.12 13.75)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 5.58:1
vs Black 3.76:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#7E7D45 — rgb(126, 125, 69)

Deuteranopia (Green-blind)

#889542 — rgb(136, 149, 66)

Tritanopia (Blue-blind)

#C03B39 — rgb(192, 59, 57)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(342, 74%, 45%);

text

color: hsl(342, 74%, 45%);

border

border: 2px solid hsl(342, 74%, 45%);

gradient light

background: linear-gradient(to right, hsl(342, 74%, 65%), hsl(342, 74%, 45%));

gradient dark

background: linear-gradient(to right, hsl(342, 74%, 45%), hsl(342, 74%, 25%))

hex

background-color: #C81E51;

tailwind

bg-[hsl(342,74%,45%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(342, 74%, 45%, 0.4);

css variable

--color-primary: hsl(342, 74%, 45%);

Related Colors

Use Cases for Pink

Beauty & cosmetics Fashion brands Romantic themes Valentine campaigns Playful UI

Frequently Asked Questions

What are all the color codes for HSL(342, 74%, 45%)?

HEX: #C81E51 | RGB: rgb(200, 30, 81) | CMYK: 0%, 85%, 60%, 22% | HSV: 342°, 85%, 78%. Copy any format from the conversion table above.

What colors go well with #C81E51?

The complementary color is HSL(162, 74%, 45%). 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%, 45%) in CSS?

As HSL: color: hsl(342, 74%, 45%); — As HEX: color: #C81E51; — As RGB: color: rgb(200, 30, 81); — Tailwind CSS: bg-[hsl(342,74%,45%)] — CSS variable: --color-primary: hsl(342, 74%, 45%);