HSL(331, 65%, 51%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(331,65%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(331, 65%, 51%) color: hsl(331, 65%, 51%)
HEX #D3317F color: #D3317F
RGB rgb(211, 49, 127) color: rgb(211, 49, 127)
CMYK cmyk(0%, 77%, 40%, 17%)
HSV hsv(331, 77%, 83%)
HWB hwb(331 19% 17%) color: hwb(331 19% 17%)
OKLCH oklch(0.5874 0.2063 356.62) color: oklch(0.5874 0.2063 356.62)
Lab lab(48.99 66.98 -4.95) color: lab(48.99 66.98 -4.95)
LCH lch(48.99 67.16 355.77) color: lch(48.99 67.16 355.77)

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 4.65:1
vs Black 4.52:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: PASS ✓

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)

#8D8B6C — rgb(141, 139, 108)

Deuteranopia (Green-blind)

#96A268 — rgb(150, 162, 104)

Tritanopia (Blue-blind)

#CB5D5A — rgb(203, 93, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(331, 65%, 51%);

text

color: hsl(331, 65%, 51%);

border

border: 2px solid hsl(331, 65%, 51%);

gradient light

background: linear-gradient(to right, hsl(331, 65%, 71%), hsl(331, 65%, 51%));

gradient dark

background: linear-gradient(to right, hsl(331, 65%, 51%), hsl(331, 65%, 31%))

hex

background-color: #D3317F;

tailwind

bg-[hsl(331,65%,51%)]

box shadow

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

css variable

--color-primary: hsl(331, 65%, 51%);

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(331, 65%, 51%)?

HEX: #D3317F | RGB: rgb(211, 49, 127) | CMYK: 0%, 77%, 40%, 17% | HSV: 331°, 77%, 83%. Copy any format from the conversion table above.

What colors go well with #D3317F?

The complementary color is HSL(151, 65%, 51%). For a triadic harmony, use hues 331°, 91°, and 211°. For analogous combinations, try hues 301° and 1°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(331, 65%, 51%) in CSS?

As HSL: color: hsl(331, 65%, 51%); — As HEX: color: #D3317F; — As RGB: color: rgb(211, 49, 127); — Tailwind CSS: bg-[hsl(331,65%,51%)] — CSS variable: --color-primary: hsl(331, 65%, 51%);