HSL(287, 40%, 51%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(287,40%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(287, 40%, 51%) color: hsl(287, 40%, 51%)
HEX #9E50B4 color: #9E50B4
RGB rgb(158, 80, 180) color: rgb(158, 80, 180)
CMYK cmyk(12%, 56%, 0%, 29%)
HSV hsv(287, 56%, 71%)
HWB hwb(287 31% 29%) color: hwb(287 31% 29%)
OKLCH oklch(0.5666 0.1663 318.36) color: oklch(0.5666 0.1663 318.36)
Lab lab(47.37 48.1 -39.71) color: lab(47.37 48.1 -39.71)
LCH lch(47.37 62.37 320.46) color: lch(47.37 62.37 320.46)

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 4.93:1
vs Black 4.26: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)

#7C7C9C — rgb(124, 124, 156)

Deuteranopia (Green-blind)

#818796 — rgb(129, 135, 150)

Tritanopia (Blue-blind)

#9A8985 — rgb(154, 137, 133)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(287, 40%, 51%);

text

color: hsl(287, 40%, 51%);

border

border: 2px solid hsl(287, 40%, 51%);

gradient light

background: linear-gradient(to right, hsl(287, 40%, 71%), hsl(287, 40%, 51%));

gradient dark

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

hex

background-color: #9E50B4;

tailwind

bg-[hsl(287,40%,51%)]

box shadow

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

css variable

--color-primary: hsl(287, 40%, 51%);

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(287, 40%, 51%)?

HEX: #9E50B4 | RGB: rgb(158, 80, 180) | CMYK: 12%, 56%, 0%, 29% | HSV: 287°, 56%, 71%. Copy any format from the conversion table above.

What colors go well with #9E50B4?

The complementary color is HSL(107, 40%, 51%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(287, 40%, 51%) in CSS?

As HSL: color: hsl(287, 40%, 51%); — As HEX: color: #9E50B4; — As RGB: color: rgb(158, 80, 180); — Tailwind CSS: bg-[hsl(287,40%,51%)] — CSS variable: --color-primary: hsl(287, 40%, 51%);