HSL(291, 48%, 24%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(291,48%,24%)]

Color Conversions

Format Value CSS Usage
HSL hsl(291, 48%, 24%) color: hsl(291, 48%, 24%)
HEX #52205B color: #52205B
RGB rgb(82, 32, 91) color: rgb(82, 32, 91)
CMYK cmyk(10%, 65%, 0%, 64%)
HSV hsv(291, 65%, 36%)
HWB hwb(291 13% 64%) color: hwb(291 13% 64%)
OKLCH oklch(0.3437 0.1118 321.29) color: oklch(0.3437 0.1118 321.29)
Lab lab(22.24 32.97 -25.13) color: lab(22.24 32.97 -25.13)
LCH lch(22.24 41.46 322.69) color: lch(22.24 41.46 322.69)

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

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#3C3C4D — rgb(60, 60, 77)

Deuteranopia (Green-blind)

#3F4349 — rgb(63, 67, 73)

Tritanopia (Blue-blind)

#50413F — rgb(80, 65, 63)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(291, 48%, 24%);

text

color: hsl(291, 48%, 24%);

border

border: 2px solid hsl(291, 48%, 24%);

gradient light

background: linear-gradient(to right, hsl(291, 48%, 44%), hsl(291, 48%, 24%));

gradient dark

background: linear-gradient(to right, hsl(291, 48%, 24%), hsl(291, 48%, 4%))

hex

background-color: #52205B;

tailwind

bg-[hsl(291,48%,24%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(291, 48%, 24%, 0.4);

css variable

--color-primary: hsl(291, 48%, 24%);

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(291, 48%, 24%)?

HEX: #52205B | RGB: rgb(82, 32, 91) | CMYK: 10%, 65%, 0%, 64% | HSV: 291°, 65%, 36%. Copy any format from the conversion table above.

What colors go well with #52205B?

The complementary color is HSL(111, 48%, 24%). For a triadic harmony, use hues 291°, 51°, and 171°. For analogous combinations, try hues 261° and 321°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(291, 48%, 24%) in CSS?

As HSL: color: hsl(291, 48%, 24%); — As HEX: color: #52205B; — As RGB: color: rgb(82, 32, 91); — Tailwind CSS: bg-[hsl(291,48%,24%)] — CSS variable: --color-primary: hsl(291, 48%, 24%);