HSL(296, 40%, 55%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(296,40%,55%)]

Color Conversions

Format Value CSS Usage
HSL hsl(296, 40%, 55%) color: hsl(296, 40%, 55%)
HEX #B45EBA color: #B45EBA
RGB rgb(180, 94, 186) color: rgb(180, 94, 186)
CMYK cmyk(3%, 49%, 0%, 27%)
HSV hsv(296, 49%, 73%)
HWB hwb(296 37% 27%) color: hwb(296 37% 27%)
OKLCH oklch(0.6168 0.1615 324.85) color: oklch(0.6168 0.1615 324.85)
Lab lab(53.23 48.3 -33.78) color: lab(53.23 48.3 -33.78)
LCH lch(53.23 58.94 325.03) color: lch(53.23 58.94 325.03)

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:1
vs Black 5.25:1

AA Normal (4.5:1)

on White: FAIL ✗ 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: black

Color Blindness Simulation

Protanopia (Red-blind)

#8F8EA4 — rgb(143, 142, 164)

Deuteranopia (Green-blind)

#949A9E — rgb(148, 154, 158)

Tritanopia (Blue-blind)

#B0928E — rgb(176, 146, 142)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(296, 40%, 55%);

text

color: hsl(296, 40%, 55%);

border

border: 2px solid hsl(296, 40%, 55%);

gradient light

background: linear-gradient(to right, hsl(296, 40%, 75%), hsl(296, 40%, 55%));

gradient dark

background: linear-gradient(to right, hsl(296, 40%, 55%), hsl(296, 40%, 35%))

hex

background-color: #B45EBA;

tailwind

bg-[hsl(296,40%,55%)]

box shadow

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

css variable

--color-primary: hsl(296, 40%, 55%);

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

HEX: #B45EBA | RGB: rgb(180, 94, 186) | CMYK: 3%, 49%, 0%, 27% | HSV: 296°, 49%, 73%. Copy any format from the conversion table above.

What colors go well with #B45EBA?

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

As HSL: color: hsl(296, 40%, 55%); — As HEX: color: #B45EBA; — As RGB: color: rgb(180, 94, 186); — Tailwind CSS: bg-[hsl(296,40%,55%)] — CSS variable: --color-primary: hsl(296, 40%, 55%);