HSL(318, 72%, 40%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(318,72%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(318, 72%, 40%) color: hsl(318, 72%, 40%)
HEX #AF1D83 color: #AF1D83
RGB rgb(175, 29, 131) color: rgb(175, 29, 131)
CMYK cmyk(0%, 83%, 25%, 31%)
HSV hsv(318, 83%, 69%)
HWB hwb(318 12% 31%) color: hwb(318 12% 31%)
OKLCH oklch(0.515 0.2015 344.07) color: oklch(0.515 0.2015 344.07)
Lab lab(40.63 63.91 -20.68) color: lab(40.63 63.91 -20.68)
LCH lch(40.63 67.17 342.07) color: lch(40.63 67.17 342.07)

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.31:1
vs Black 3.33: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)

#706E6A — rgb(112, 110, 106)

Deuteranopia (Green-blind)

#788364 — rgb(120, 131, 100)

Tritanopia (Blue-blind)

#A85753 — rgb(168, 87, 83)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(318, 72%, 40%);

text

color: hsl(318, 72%, 40%);

border

border: 2px solid hsl(318, 72%, 40%);

gradient light

background: linear-gradient(to right, hsl(318, 72%, 60%), hsl(318, 72%, 40%));

gradient dark

background: linear-gradient(to right, hsl(318, 72%, 40%), hsl(318, 72%, 20%))

hex

background-color: #AF1D83;

tailwind

bg-[hsl(318,72%,40%)]

box shadow

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

css variable

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

HEX: #AF1D83 | RGB: rgb(175, 29, 131) | CMYK: 0%, 83%, 25%, 31% | HSV: 318°, 83%, 69%. Copy any format from the conversion table above.

What colors go well with #AF1D83?

The complementary color is HSL(138, 72%, 40%). For a triadic harmony, use hues 318°, 78°, and 198°. For analogous combinations, try hues 288° and 348°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(318, 72%, 40%) in CSS?

As HSL: color: hsl(318, 72%, 40%); — As HEX: color: #AF1D83; — As RGB: color: rgb(175, 29, 131); — Tailwind CSS: bg-[hsl(318,72%,40%)] — CSS variable: --color-primary: hsl(318, 72%, 40%);