HSL(313, 40%, 51%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(313, 40%, 51%) color: hsl(313, 40%, 51%)
HEX #B4509E color: #B4509E
RGB rgb(180, 80, 158) color: rgb(180, 80, 158)
CMYK cmyk(0%, 56%, 12%, 29%)
HSV hsv(313, 56%, 71%)
HWB hwb(313 31% 29%) color: hwb(313 31% 29%)
OKLCH oklch(0.5844 0.1599 336.7) color: oklch(0.5844 0.1599 336.7)
Lab lab(49.39 50.3 -23.39) color: lab(49.39 50.3 -23.39)
LCH lch(49.39 55.47 335.06) color: lch(49.39 55.47 335.06)

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.58:1
vs Black 4.58:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: PASS ✓

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)

#89888B — rgb(137, 136, 139)

Deuteranopia (Green-blind)

#8F9687 — rgb(143, 150, 135)

Tritanopia (Blue-blind)

#AF7C79 — rgb(175, 124, 121)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #B4509E;

tailwind

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

box shadow

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

css variable

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

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

What colors go well with #B4509E?

The complementary color is HSL(133, 40%, 51%). For a triadic harmony, use hues 313°, 73°, and 193°. For analogous combinations, try hues 283° and 343°. See the Color Harmony section above for complete palettes with previews.

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

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