HSL(297, 61%, 34%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(297,61%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(297, 61%, 34%) color: hsl(297, 61%, 34%)
HEX #86228C color: #86228C
RGB rgb(134, 34, 140) color: rgb(134, 34, 140)
CMYK cmyk(4%, 76%, 0%, 45%)
HSV hsv(297, 76%, 55%)
HWB hwb(297 13% 45%) color: hwb(297 13% 45%)
OKLCH oklch(0.4566 0.1811 325.53) color: oklch(0.4566 0.1811 325.53)
Lab lab(34.2 54.62 -36.84) color: lab(34.2 54.62 -36.84)
LCH lch(34.2 65.88 326) color: lch(34.2 65.88 326)

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.01:1
vs Black 2.62: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)

#5B5A72 — rgb(91, 90, 114)

Deuteranopia (Green-blind)

#61686C — rgb(97, 104, 108)

Tritanopia (Blue-blind)

#815E5A — rgb(129, 94, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(297, 61%, 34%);

text

color: hsl(297, 61%, 34%);

border

border: 2px solid hsl(297, 61%, 34%);

gradient light

background: linear-gradient(to right, hsl(297, 61%, 54%), hsl(297, 61%, 34%));

gradient dark

background: linear-gradient(to right, hsl(297, 61%, 34%), hsl(297, 61%, 14%))

hex

background-color: #86228C;

tailwind

bg-[hsl(297,61%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(297, 61%, 34%, 0.4);

css variable

--color-primary: hsl(297, 61%, 34%);

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(297, 61%, 34%)?

HEX: #86228C | RGB: rgb(134, 34, 140) | CMYK: 4%, 76%, 0%, 45% | HSV: 297°, 76%, 55%. Copy any format from the conversion table above.

What colors go well with #86228C?

The complementary color is HSL(117, 61%, 34%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(297, 61%, 34%) in CSS?

As HSL: color: hsl(297, 61%, 34%); — As HEX: color: #86228C; — As RGB: color: rgb(134, 34, 140); — Tailwind CSS: bg-[hsl(297,61%,34%)] — CSS variable: --color-primary: hsl(297, 61%, 34%);