HSL(305, 30%, 42%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(305,30%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(305, 30%, 42%) color: hsl(305, 30%, 42%)
HEX #8B4B86 color: #8B4B86
RGB rgb(139, 75, 134) color: rgb(139, 75, 134)
CMYK cmyk(0%, 46%, 4%, 45%)
HSV hsv(305, 46%, 55%)
HWB hwb(305 30% 45%) color: hwb(305 30% 45%)
OKLCH oklch(0.5112 0.1172 330.03) color: oklch(0.5112 0.1172 330.03)
Lab lab(41.6 35.99 -21.49) color: lab(41.6 35.99 -21.49)
LCH lch(41.6 41.92 329.16) color: lch(41.6 41.92 329.16)

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 6.09:1
vs Black 3.45: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)

#6F6F78 — rgb(111, 111, 120)

Deuteranopia (Green-blind)

#737874 — rgb(115, 120, 116)

Tritanopia (Blue-blind)

#886C6A — rgb(136, 108, 106)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(305, 30%, 42%);

text

color: hsl(305, 30%, 42%);

border

border: 2px solid hsl(305, 30%, 42%);

gradient light

background: linear-gradient(to right, hsl(305, 30%, 62%), hsl(305, 30%, 42%));

gradient dark

background: linear-gradient(to right, hsl(305, 30%, 42%), hsl(305, 30%, 22%))

hex

background-color: #8B4B86;

tailwind

bg-[hsl(305,30%,42%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(305, 30%, 42%, 0.4);

css variable

--color-primary: hsl(305, 30%, 42%);

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(305, 30%, 42%)?

HEX: #8B4B86 | RGB: rgb(139, 75, 134) | CMYK: 0%, 46%, 4%, 45% | HSV: 305°, 46%, 55%. Copy any format from the conversion table above.

What colors go well with #8B4B86?

The complementary color is HSL(125, 30%, 42%). For a triadic harmony, use hues 305°, 65°, and 185°. For analogous combinations, try hues 275° and 335°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(305, 30%, 42%) in CSS?

As HSL: color: hsl(305, 30%, 42%); — As HEX: color: #8B4B86; — As RGB: color: rgb(139, 75, 134); — Tailwind CSS: bg-[hsl(305,30%,42%)] — CSS variable: --color-primary: hsl(305, 30%, 42%);