HSL(303, 20%, 52%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(303,20%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(303, 20%, 52%) color: hsl(303, 20%, 52%)
HEX #9D6C9B color: #9D6C9B
RGB rgb(157, 108, 155) color: rgb(157, 108, 155)
CMYK cmyk(0%, 31%, 1%, 38%)
HSV hsv(302, 31%, 62%)
HWB hwb(302 43% 38%) color: hwb(302 43% 38%)
OKLCH oklch(0.5982 0.0902 328.02) color: oklch(0.5982 0.0902 328.02)
Lab lab(52.13 27.47 -17.67) color: lab(52.13 27.47 -17.67)
LCH lch(52.13 32.66 327.25) color: lch(52.13 32.66 327.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.16:1
vs Black 5.05: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)

#888790 — rgb(136, 135, 144)

Deuteranopia (Green-blind)

#8B8E8D — rgb(139, 142, 141)

Tritanopia (Blue-blind)

#9B8785 — rgb(155, 135, 133)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(303, 20%, 52%);

text

color: hsl(303, 20%, 52%);

border

border: 2px solid hsl(303, 20%, 52%);

gradient light

background: linear-gradient(to right, hsl(303, 20%, 72%), hsl(303, 20%, 52%));

gradient dark

background: linear-gradient(to right, hsl(303, 20%, 52%), hsl(303, 20%, 32%))

hex

background-color: #9D6C9B;

tailwind

bg-[hsl(303,20%,52%)]

box shadow

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

css variable

--color-primary: hsl(303, 20%, 52%);

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(303, 20%, 52%)?

HEX: #9D6C9B | RGB: rgb(157, 108, 155) | CMYK: 0%, 31%, 1%, 38% | HSV: 302°, 31%, 62%. Copy any format from the conversion table above.

What colors go well with #9D6C9B?

The complementary color is HSL(123, 20%, 52%). For a triadic harmony, use hues 303°, 63°, and 183°. For analogous combinations, try hues 273° and 333°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(303, 20%, 52%) in CSS?

As HSL: color: hsl(303, 20%, 52%); — As HEX: color: #9D6C9B; — As RGB: color: rgb(157, 108, 155); — Tailwind CSS: bg-[hsl(303,20%,52%)] — CSS variable: --color-primary: hsl(303, 20%, 52%);