HSL(291, 83%, 17%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(291,83%,17%)]

Color Conversions

Format Value CSS Usage
HSL hsl(291, 83%, 17%) color: hsl(291, 83%, 17%)
HEX #45074F color: #45074F
RGB rgb(69, 7, 79) color: rgb(69, 7, 79)
CMYK cmyk(13%, 91%, 0%, 69%)
HSV hsv(292, 91%, 31%)
HWB hwb(292 3% 69%) color: hwb(292 3% 69%)
OKLCH oklch(0.2875 0.1265 321.4) color: oklch(0.2875 0.1265 321.4)
Lab lab(15.39 37.75 -28.12) color: lab(15.39 37.75 -28.12)
LCH lch(15.39 47.07 323.32) color: lch(15.39 47.07 323.32)

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.04:1
vs Black 1.4: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)

#2A2A3E — rgb(42, 42, 62)

Deuteranopia (Green-blind)

#2E3239 — rgb(46, 50, 57)

Tritanopia (Blue-blind)

#42302D — rgb(66, 48, 45)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(291, 83%, 17%);

text

color: hsl(291, 83%, 17%);

border

border: 2px solid hsl(291, 83%, 17%);

gradient light

background: linear-gradient(to right, hsl(291, 83%, 37%), hsl(291, 83%, 17%));

gradient dark

background: linear-gradient(to right, hsl(291, 83%, 17%), hsl(291, 83%, 0%))

hex

background-color: #45074F;

tailwind

bg-[hsl(291,83%,17%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(291, 83%, 17%, 0.4);

css variable

--color-primary: hsl(291, 83%, 17%);

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(291, 83%, 17%)?

HEX: #45074F | RGB: rgb(69, 7, 79) | CMYK: 13%, 91%, 0%, 69% | HSV: 292°, 91%, 31%. Copy any format from the conversion table above.

What colors go well with #45074F?

The complementary color is HSL(111, 83%, 17%). For a triadic harmony, use hues 291°, 51°, and 171°. For analogous combinations, try hues 261° and 321°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(291, 83%, 17%) in CSS?

As HSL: color: hsl(291, 83%, 17%); — As HEX: color: #45074F; — As RGB: color: rgb(69, 7, 79); — Tailwind CSS: bg-[hsl(291,83%,17%)] — CSS variable: --color-primary: hsl(291, 83%, 17%);