HSL(296, 34%, 47%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(296,34%,47%)]

Color Conversions

Format Value CSS Usage
HSL hsl(296, 34%, 47%) color: hsl(296, 34%, 47%)
HEX #9B4FA1 color: #9B4FA1
RGB rgb(155, 79, 161) color: rgb(155, 79, 161)
CMYK cmyk(4%, 51%, 0%, 37%)
HSV hsv(296, 51%, 63%)
HWB hwb(296 31% 37%) color: hwb(296 31% 37%)
OKLCH oklch(0.5512 0.1472 324.55) color: oklch(0.5512 0.1472 324.55)
Lab lab(45.82 43.97 -30.99) color: lab(45.82 43.97 -30.99)
LCH lch(45.82 53.79 324.82) color: lch(45.82 53.79 324.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 5.22:1
vs Black 4.03: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)

#7A798D — rgb(122, 121, 141)

Deuteranopia (Green-blind)

#7F8488 — rgb(127, 132, 136)

Tritanopia (Blue-blind)

#977D7A — rgb(151, 125, 122)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(296, 34%, 47%);

text

color: hsl(296, 34%, 47%);

border

border: 2px solid hsl(296, 34%, 47%);

gradient light

background: linear-gradient(to right, hsl(296, 34%, 67%), hsl(296, 34%, 47%));

gradient dark

background: linear-gradient(to right, hsl(296, 34%, 47%), hsl(296, 34%, 27%))

hex

background-color: #9B4FA1;

tailwind

bg-[hsl(296,34%,47%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(296, 34%, 47%, 0.4);

css variable

--color-primary: hsl(296, 34%, 47%);

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(296, 34%, 47%)?

HEX: #9B4FA1 | RGB: rgb(155, 79, 161) | CMYK: 4%, 51%, 0%, 37% | HSV: 296°, 51%, 63%. Copy any format from the conversion table above.

What colors go well with #9B4FA1?

The complementary color is HSL(116, 34%, 47%). For a triadic harmony, use hues 296°, 56°, and 176°. For analogous combinations, try hues 266° and 326°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(296, 34%, 47%) in CSS?

As HSL: color: hsl(296, 34%, 47%); — As HEX: color: #9B4FA1; — As RGB: color: rgb(155, 79, 161); — Tailwind CSS: bg-[hsl(296,34%,47%)] — CSS variable: --color-primary: hsl(296, 34%, 47%);