HSL(290, 51%, 37%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(290,51%,37%)]

Color Conversions

Format Value CSS Usage
HSL hsl(290, 51%, 37%) color: hsl(290, 51%, 37%)
HEX #7E2E8E color: #7E2E8E
RGB rgb(126, 46, 142) color: rgb(126, 46, 142)
CMYK cmyk(11%, 68%, 0%, 44%)
HSV hsv(290, 68%, 56%)
HWB hwb(290 18% 44%) color: hwb(290 18% 44%)
OKLCH oklch(0.4579 0.1643 320.55) color: oklch(0.4579 0.1643 320.55)
Lab lab(34.69 48.46 -37.37) color: lab(34.69 48.46 -37.37)
LCH lch(34.69 61.2 322.36) color: lch(34.69 61.2 322.36)

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.87:1
vs Black 2.67: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)

#5B5B77 — rgb(91, 91, 119)

Deuteranopia (Green-blind)

#606671 — rgb(96, 102, 113)

Tritanopia (Blue-blind)

#7A6460 — rgb(122, 100, 96)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(290, 51%, 37%);

text

color: hsl(290, 51%, 37%);

border

border: 2px solid hsl(290, 51%, 37%);

gradient light

background: linear-gradient(to right, hsl(290, 51%, 57%), hsl(290, 51%, 37%));

gradient dark

background: linear-gradient(to right, hsl(290, 51%, 37%), hsl(290, 51%, 17%))

hex

background-color: #7E2E8E;

tailwind

bg-[hsl(290,51%,37%)]

box shadow

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

css variable

--color-primary: hsl(290, 51%, 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(290, 51%, 37%)?

HEX: #7E2E8E | RGB: rgb(126, 46, 142) | CMYK: 11%, 68%, 0%, 44% | HSV: 290°, 68%, 56%. Copy any format from the conversion table above.

What colors go well with #7E2E8E?

The complementary color is HSL(110, 51%, 37%). For a triadic harmony, use hues 290°, 50°, and 170°. For analogous combinations, try hues 260° and 320°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(290, 51%, 37%) in CSS?

As HSL: color: hsl(290, 51%, 37%); — As HEX: color: #7E2E8E; — As RGB: color: rgb(126, 46, 142); — Tailwind CSS: bg-[hsl(290,51%,37%)] — CSS variable: --color-primary: hsl(290, 51%, 37%);