HSL(336, 51%, 40%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(336,51%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(336, 51%, 40%) color: hsl(336, 51%, 40%)
HEX #9A325C color: #9A325C
RGB rgb(154, 50, 92) color: rgb(154, 50, 92)
CMYK cmyk(0%, 68%, 40%, 40%)
HSV hsv(336, 68%, 60%)
HWB hwb(336 19% 40%) color: hwb(336 19% 40%)
OKLCH oklch(0.4817 0.1434 359.14) color: oklch(0.4817 0.1434 359.14)
Lab lab(37.71 46.85 -1.04) color: lab(37.71 46.85 -1.04)
LCH lch(37.71 46.86 358.73) color: lch(37.71 46.86 358.73)

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 7.04:1
vs Black 2.98: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)

#6D6C52 — rgb(109, 108, 82)

Deuteranopia (Green-blind)

#737B4F — rgb(115, 123, 79)

Tritanopia (Blue-blind)

#954A48 — rgb(149, 74, 72)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(336, 51%, 40%);

text

color: hsl(336, 51%, 40%);

border

border: 2px solid hsl(336, 51%, 40%);

gradient light

background: linear-gradient(to right, hsl(336, 51%, 60%), hsl(336, 51%, 40%));

gradient dark

background: linear-gradient(to right, hsl(336, 51%, 40%), hsl(336, 51%, 20%))

hex

background-color: #9A325C;

tailwind

bg-[hsl(336,51%,40%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(336, 51%, 40%, 0.4);

css variable

--color-primary: hsl(336, 51%, 40%);

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(336, 51%, 40%)?

HEX: #9A325C | RGB: rgb(154, 50, 92) | CMYK: 0%, 68%, 40%, 40% | HSV: 336°, 68%, 60%. Copy any format from the conversion table above.

What colors go well with #9A325C?

The complementary color is HSL(156, 51%, 40%). For a triadic harmony, use hues 336°, 96°, and 216°. For analogous combinations, try hues 306° and 6°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(336, 51%, 40%) in CSS?

As HSL: color: hsl(336, 51%, 40%); — As HEX: color: #9A325C; — As RGB: color: rgb(154, 50, 92); — Tailwind CSS: bg-[hsl(336,51%,40%)] — CSS variable: --color-primary: hsl(336, 51%, 40%);