HSL(320, 68%, 40%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(320,68%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(320, 68%, 40%) color: hsl(320, 68%, 40%)
HEX #AB217D color: #AB217D
RGB rgb(171, 33, 125) color: rgb(171, 33, 125)
CMYK cmyk(0%, 81%, 27%, 33%)
HSV hsv(320, 81%, 67%)
HWB hwb(320 13% 33%) color: hwb(320 13% 33%)
OKLCH oklch(0.508 0.1922 345.54) color: oklch(0.508 0.1922 345.54)
Lab lab(39.96 61.25 -18.06) color: lab(39.96 61.25 -18.06)
LCH lch(39.96 63.86 343.57) color: lch(39.96 63.86 343.57)

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 6.47:1
vs Black 3.25: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)

#6F6E67 — rgb(111, 110, 103)

Deuteranopia (Green-blind)

#778261 — rgb(119, 130, 97)

Tritanopia (Blue-blind)

#A45551 — rgb(164, 85, 81)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(320, 68%, 40%);

text

color: hsl(320, 68%, 40%);

border

border: 2px solid hsl(320, 68%, 40%);

gradient light

background: linear-gradient(to right, hsl(320, 68%, 60%), hsl(320, 68%, 40%));

gradient dark

background: linear-gradient(to right, hsl(320, 68%, 40%), hsl(320, 68%, 20%))

hex

background-color: #AB217D;

tailwind

bg-[hsl(320,68%,40%)]

box shadow

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

css variable

--color-primary: hsl(320, 68%, 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(320, 68%, 40%)?

HEX: #AB217D | RGB: rgb(171, 33, 125) | CMYK: 0%, 81%, 27%, 33% | HSV: 320°, 81%, 67%. Copy any format from the conversion table above.

What colors go well with #AB217D?

The complementary color is HSL(140, 68%, 40%). For a triadic harmony, use hues 320°, 80°, and 200°. For analogous combinations, try hues 290° and 350°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(320, 68%, 40%) in CSS?

As HSL: color: hsl(320, 68%, 40%); — As HEX: color: #AB217D; — As RGB: color: rgb(171, 33, 125); — Tailwind CSS: bg-[hsl(320,68%,40%)] — CSS variable: --color-primary: hsl(320, 68%, 40%);