HSL(306, 40%, 48%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(306,40%,48%)]

Color Conversions

Format Value CSS Usage
HSL hsl(306, 40%, 48%) color: hsl(306, 40%, 48%)
HEX #AB49A2 color: #AB49A2
RGB rgb(171, 73, 162) color: rgb(171, 73, 162)
CMYK cmyk(0%, 57%, 5%, 33%)
HSV hsv(306, 57%, 67%)
HWB hwb(306 29% 33%) color: hwb(306 29% 33%)
OKLCH oklch(0.5648 0.1678 331.21) color: oklch(0.5648 0.1678 331.21)
Lab lab(47.02 51.69 -29.54) color: lab(47.02 51.69 -29.54)
LCH lch(47.02 59.54 330.25) color: lch(47.02 59.54 330.25)

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.99:1
vs Black 4.21: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)

#81808C — rgb(129, 128, 140)

Deuteranopia (Green-blind)

#868E87 — rgb(134, 142, 135)

Tritanopia (Blue-blind)

#A67B78 — rgb(166, 123, 120)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(306, 40%, 48%);

text

color: hsl(306, 40%, 48%);

border

border: 2px solid hsl(306, 40%, 48%);

gradient light

background: linear-gradient(to right, hsl(306, 40%, 68%), hsl(306, 40%, 48%));

gradient dark

background: linear-gradient(to right, hsl(306, 40%, 48%), hsl(306, 40%, 28%))

hex

background-color: #AB49A2;

tailwind

bg-[hsl(306,40%,48%)]

box shadow

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

css variable

--color-primary: hsl(306, 40%, 48%);

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(306, 40%, 48%)?

HEX: #AB49A2 | RGB: rgb(171, 73, 162) | CMYK: 0%, 57%, 5%, 33% | HSV: 306°, 57%, 67%. Copy any format from the conversion table above.

What colors go well with #AB49A2?

The complementary color is HSL(126, 40%, 48%). For a triadic harmony, use hues 306°, 66°, and 186°. For analogous combinations, try hues 276° and 336°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(306, 40%, 48%) in CSS?

As HSL: color: hsl(306, 40%, 48%); — As HEX: color: #AB49A2; — As RGB: color: rgb(171, 73, 162); — Tailwind CSS: bg-[hsl(306,40%,48%)] — CSS variable: --color-primary: hsl(306, 40%, 48%);