HSL(340, 50%, 24%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(340,50%,24%)]

Color Conversions

Format Value CSS Usage
HSL hsl(340, 50%, 24%) color: hsl(340, 50%, 24%)
HEX #5C1F33 color: #5C1F33
RGB rgb(92, 31, 51) color: rgb(92, 31, 51)
CMYK cmyk(0%, 66%, 45%, 64%)
HSV hsv(340, 66%, 36%)
HWB hwb(340 12% 64%) color: hwb(340 12% 64%)
OKLCH oklch(0.3388 0.0915 2.97) color: oklch(0.3388 0.0915 2.97)
Lab lab(21.93 29.94 1.7) color: lab(21.93 29.94 1.7)
LCH lch(21.93 29.99 3.25) color: lch(21.93 29.99 3.25)

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 12.36:1
vs Black 1.7:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#42412E — rgb(66, 65, 46)

Deuteranopia (Green-blind)

#454A2D — rgb(69, 74, 45)

Tritanopia (Blue-blind)

#592A2A — rgb(89, 42, 42)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(340, 50%, 24%);

text

color: hsl(340, 50%, 24%);

border

border: 2px solid hsl(340, 50%, 24%);

gradient light

background: linear-gradient(to right, hsl(340, 50%, 44%), hsl(340, 50%, 24%));

gradient dark

background: linear-gradient(to right, hsl(340, 50%, 24%), hsl(340, 50%, 4%))

hex

background-color: #5C1F33;

tailwind

bg-[hsl(340,50%,24%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(340, 50%, 24%, 0.4);

css variable

--color-primary: hsl(340, 50%, 24%);

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(340, 50%, 24%)?

HEX: #5C1F33 | RGB: rgb(92, 31, 51) | CMYK: 0%, 66%, 45%, 64% | HSV: 340°, 66%, 36%. Copy any format from the conversion table above.

What colors go well with #5C1F33?

The complementary color is HSL(160, 50%, 24%). For a triadic harmony, use hues 340°, 100°, and 220°. For analogous combinations, try hues 310° and 10°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(340, 50%, 24%) in CSS?

As HSL: color: hsl(340, 50%, 24%); — As HEX: color: #5C1F33; — As RGB: color: rgb(92, 31, 51); — Tailwind CSS: bg-[hsl(340,50%,24%)] — CSS variable: --color-primary: hsl(340, 50%, 24%);