HSL(303, 40%, 37%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(303,40%,37%)]

Color Conversions

Format Value CSS Usage
HSL hsl(303, 40%, 37%) color: hsl(303, 40%, 37%)
HEX #843980 color: #843980
RGB rgb(132, 57, 128) color: rgb(132, 57, 128)
CMYK cmyk(0%, 57%, 3%, 48%)
HSV hsv(303, 57%, 52%)
HWB hwb(303 22% 48%) color: hwb(303 22% 48%)
OKLCH oklch(0.4721 0.1379 329.57) color: oklch(0.4721 0.1379 329.57)
Lab lab(36.73 42.18 -25.46) color: lab(36.73 42.18 -25.46)
LCH lch(36.73 49.27 328.88) color: lch(36.73 49.27 328.88)

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 7.3:1
vs Black 2.88: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)

#64636F — rgb(100, 99, 111)

Deuteranopia (Green-blind)

#686E6B — rgb(104, 110, 107)

Tritanopia (Blue-blind)

#80615E — rgb(128, 97, 94)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(303, 40%, 37%);

text

color: hsl(303, 40%, 37%);

border

border: 2px solid hsl(303, 40%, 37%);

gradient light

background: linear-gradient(to right, hsl(303, 40%, 57%), hsl(303, 40%, 37%));

gradient dark

background: linear-gradient(to right, hsl(303, 40%, 37%), hsl(303, 40%, 17%))

hex

background-color: #843980;

tailwind

bg-[hsl(303,40%,37%)]

box shadow

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

css variable

--color-primary: hsl(303, 40%, 37%);

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, 40%, 37%)?

HEX: #843980 | RGB: rgb(132, 57, 128) | CMYK: 0%, 57%, 3%, 48% | HSV: 303°, 57%, 52%. Copy any format from the conversion table above.

What colors go well with #843980?

The complementary color is HSL(123, 40%, 37%). 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, 40%, 37%) in CSS?

As HSL: color: hsl(303, 40%, 37%); — As HEX: color: #843980; — As RGB: color: rgb(132, 57, 128); — Tailwind CSS: bg-[hsl(303,40%,37%)] — CSS variable: --color-primary: hsl(303, 40%, 37%);