HSL(309, 52%, 15%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(309,52%,15%)]

Color Conversions

Format Value CSS Usage
HSL hsl(309, 52%, 15%) color: hsl(309, 52%, 15%)
HEX #3A1234 color: #3A1234
RGB rgb(58, 18, 52) color: rgb(58, 18, 52)
CMYK cmyk(0%, 69%, 10%, 77%)
HSV hsv(309, 69%, 23%)
HWB hwb(309 7% 77%) color: hwb(309 7% 77%)
OKLCH oklch(0.2613 0.0798 333.88) color: oklch(0.2613 0.0798 333.88)
Lab lab(13.11 24.82 -12.9) color: lab(13.11 24.82 -12.9)
LCH lch(13.11 27.97 332.54) color: lch(13.11 27.97 332.54)

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 15.96:1
vs Black 1.32: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)

#29282C — rgb(41, 40, 44)

Deuteranopia (Green-blind)

#2B2E2A — rgb(43, 46, 42)

Tritanopia (Blue-blind)

#382524 — rgb(56, 37, 36)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(309, 52%, 15%);

text

color: hsl(309, 52%, 15%);

border

border: 2px solid hsl(309, 52%, 15%);

gradient light

background: linear-gradient(to right, hsl(309, 52%, 35%), hsl(309, 52%, 15%));

gradient dark

background: linear-gradient(to right, hsl(309, 52%, 15%), hsl(309, 52%, 0%))

hex

background-color: #3A1234;

tailwind

bg-[hsl(309,52%,15%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(309, 52%, 15%, 0.4);

css variable

--color-primary: hsl(309, 52%, 15%);

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(309, 52%, 15%)?

HEX: #3A1234 | RGB: rgb(58, 18, 52) | CMYK: 0%, 69%, 10%, 77% | HSV: 309°, 69%, 23%. Copy any format from the conversion table above.

What colors go well with #3A1234?

The complementary color is HSL(129, 52%, 15%). For a triadic harmony, use hues 309°, 69°, and 189°. For analogous combinations, try hues 279° and 339°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(309, 52%, 15%) in CSS?

As HSL: color: hsl(309, 52%, 15%); — As HEX: color: #3A1234; — As RGB: color: rgb(58, 18, 52); — Tailwind CSS: bg-[hsl(309,52%,15%)] — CSS variable: --color-primary: hsl(309, 52%, 15%);