HSL(317, 36%, 40%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(317,36%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(317, 36%, 40%) color: hsl(317, 36%, 40%)
HEX #8B4176 color: #8B4176
RGB rgb(139, 65, 118) color: rgb(139, 65, 118)
CMYK cmyk(0%, 53%, 15%, 45%)
HSV hsv(317, 53%, 55%)
HWB hwb(317 26% 45%) color: hwb(317 26% 45%)
OKLCH oklch(0.4886 0.121 339.38) color: oklch(0.4886 0.121 339.38)
Lab lab(38.86 38.5 -15.87) color: lab(38.86 38.5 -15.87)
LCH lch(38.86 41.64 337.6) color: lch(38.86 41.64 337.6)

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.74:1
vs Black 3.12: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)

#6B6A69 — rgb(107, 106, 105)

Deuteranopia (Green-blind)

#6F7566 — rgb(111, 117, 102)

Tritanopia (Blue-blind)

#875F5D — rgb(135, 95, 93)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(317, 36%, 40%);

text

color: hsl(317, 36%, 40%);

border

border: 2px solid hsl(317, 36%, 40%);

gradient light

background: linear-gradient(to right, hsl(317, 36%, 60%), hsl(317, 36%, 40%));

gradient dark

background: linear-gradient(to right, hsl(317, 36%, 40%), hsl(317, 36%, 20%))

hex

background-color: #8B4176;

tailwind

bg-[hsl(317,36%,40%)]

box shadow

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

css variable

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

HEX: #8B4176 | RGB: rgb(139, 65, 118) | CMYK: 0%, 53%, 15%, 45% | HSV: 317°, 53%, 55%. Copy any format from the conversion table above.

What colors go well with #8B4176?

The complementary color is HSL(137, 36%, 40%). For a triadic harmony, use hues 317°, 77°, and 197°. For analogous combinations, try hues 287° and 347°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(317, 36%, 40%) in CSS?

As HSL: color: hsl(317, 36%, 40%); — As HEX: color: #8B4176; — As RGB: color: rgb(139, 65, 118); — Tailwind CSS: bg-[hsl(317,36%,40%)] — CSS variable: --color-primary: hsl(317, 36%, 40%);