HSL(291, 59%, 35%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(291,59%,35%)]

Color Conversions

Format Value CSS Usage
HSL hsl(291, 59%, 35%) color: hsl(291, 59%, 35%)
HEX #7E258E color: #7E258E
RGB rgb(126, 37, 142) color: rgb(126, 37, 142)
CMYK cmyk(11%, 74%, 0%, 44%)
HSV hsv(291, 74%, 56%)
HWB hwb(291 15% 44%) color: hwb(291 15% 44%)
OKLCH oklch(0.4485 0.1758 321.08) color: oklch(0.4485 0.1758 321.08)
Lab lab(33.38 52.15 -39.47) color: lab(33.38 52.15 -39.47)
LCH lch(33.38 65.4 322.88) color: lch(33.38 65.4 322.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 8.26:1
vs Black 2.54: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)

#575775 — rgb(87, 87, 117)

Deuteranopia (Green-blind)

#5D636F — rgb(93, 99, 111)

Tritanopia (Blue-blind)

#7A615C — rgb(122, 97, 92)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(291, 59%, 35%);

text

color: hsl(291, 59%, 35%);

border

border: 2px solid hsl(291, 59%, 35%);

gradient light

background: linear-gradient(to right, hsl(291, 59%, 55%), hsl(291, 59%, 35%));

gradient dark

background: linear-gradient(to right, hsl(291, 59%, 35%), hsl(291, 59%, 15%))

hex

background-color: #7E258E;

tailwind

bg-[hsl(291,59%,35%)]

box shadow

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

css variable

--color-primary: hsl(291, 59%, 35%);

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, 59%, 35%)?

HEX: #7E258E | RGB: rgb(126, 37, 142) | CMYK: 11%, 74%, 0%, 44% | HSV: 291°, 74%, 56%. Copy any format from the conversion table above.

What colors go well with #7E258E?

The complementary color is HSL(111, 59%, 35%). 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, 59%, 35%) in CSS?

As HSL: color: hsl(291, 59%, 35%); — As HEX: color: #7E258E; — As RGB: color: rgb(126, 37, 142); — Tailwind CSS: bg-[hsl(291,59%,35%)] — CSS variable: --color-primary: hsl(291, 59%, 35%);