HSL(310, 50%, 41%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(310,50%,41%)]

Color Conversions

Format Value CSS Usage
HSL hsl(310, 50%, 41%) color: hsl(310, 50%, 41%)
HEX #9D348B color: #9D348B
RGB rgb(157, 52, 139) color: rgb(157, 52, 139)
CMYK cmyk(0%, 67%, 11%, 38%)
HSV hsv(310, 67%, 62%)
HWB hwb(310 20% 38%) color: hwb(310 20% 38%)
OKLCH oklch(0.5085 0.171 335.32) color: oklch(0.5085 0.171 335.32)
Lab lab(40.39 53.29 -26.2) color: lab(40.39 53.29 -26.2)
LCH lch(40.39 59.38 333.82) color: lch(40.39 59.38 333.82)

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.37:1
vs Black 3.3: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)

#706F76 — rgb(112, 111, 118)

Deuteranopia (Green-blind)

#767E71 — rgb(118, 126, 113)

Tritanopia (Blue-blind)

#986562 — rgb(152, 101, 98)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(310, 50%, 41%);

text

color: hsl(310, 50%, 41%);

border

border: 2px solid hsl(310, 50%, 41%);

gradient light

background: linear-gradient(to right, hsl(310, 50%, 61%), hsl(310, 50%, 41%));

gradient dark

background: linear-gradient(to right, hsl(310, 50%, 41%), hsl(310, 50%, 21%))

hex

background-color: #9D348B;

tailwind

bg-[hsl(310,50%,41%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(310, 50%, 41%, 0.4);

css variable

--color-primary: hsl(310, 50%, 41%);

Related Colors

Use Cases for Purple

Luxury brands Creative agencies Beauty products Royalty themes Premium badges

Frequently Asked Questions

What are all the color codes for HSL(310, 50%, 41%)?

HEX: #9D348B | RGB: rgb(157, 52, 139) | CMYK: 0%, 67%, 11%, 38% | HSV: 310°, 67%, 62%. Copy any format from the conversion table above.

What colors go well with #9D348B?

The complementary color is HSL(130, 50%, 41%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(310, 50%, 41%) in CSS?

As HSL: color: hsl(310, 50%, 41%); — As HEX: color: #9D348B; — As RGB: color: rgb(157, 52, 139); — Tailwind CSS: bg-[hsl(310,50%,41%)] — CSS variable: --color-primary: hsl(310, 50%, 41%);