HSL(317, 40%, 31%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(317, 40%, 31%) color: hsl(317, 40%, 31%)
HEX #6F2F5D color: #6F2F5D
RGB rgb(111, 47, 93) color: rgb(111, 47, 93)
CMYK cmyk(0%, 58%, 16%, 56%)
HSV hsv(317, 58%, 44%)
HWB hwb(317 18% 56%) color: hwb(317 18% 56%)
OKLCH oklch(0.41 0.1085 339.56) color: oklch(0.41 0.1085 339.56)
Lab lab(29.92 34.5 -14.11) color: lab(29.92 34.5 -14.11)
LCH lch(29.92 37.27 337.76) color: lch(29.92 37.27 337.76)

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 9.37:1
vs Black 2.24: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)

#535352 — rgb(83, 83, 82)

Deuteranopia (Green-blind)

#575C4F — rgb(87, 92, 79)

Tritanopia (Blue-blind)

#6C4947 — rgb(108, 73, 71)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

background: linear-gradient(to right, hsl(317, 40%, 51%), hsl(317, 40%, 31%));

gradient dark

background: linear-gradient(to right, hsl(317, 40%, 31%), hsl(317, 40%, 11%))

hex

background-color: #6F2F5D;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(317, 40%, 31%);

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, 40%, 31%)?

HEX: #6F2F5D | RGB: rgb(111, 47, 93) | CMYK: 0%, 58%, 16%, 56% | HSV: 317°, 58%, 44%. Copy any format from the conversion table above.

What colors go well with #6F2F5D?

The complementary color is HSL(137, 40%, 31%). 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, 40%, 31%) in CSS?

As HSL: color: hsl(317, 40%, 31%); — As HEX: color: #6F2F5D; — As RGB: color: rgb(111, 47, 93); — Tailwind CSS: bg-[hsl(317,40%,31%)] — CSS variable: --color-primary: hsl(317, 40%, 31%);