HSL(297, 31%, 62%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(297,31%,62%)]

Color Conversions

Format Value CSS Usage
HSL hsl(297, 31%, 62%) color: hsl(297, 31%, 62%)
HEX #B980BC color: #B980BC
RGB rgb(185, 128, 188) color: rgb(185, 128, 188)
CMYK cmyk(2%, 32%, 0%, 26%)
HSV hsv(297, 32%, 74%)
HWB hwb(297 50% 26%) color: hwb(297 50% 26%)
OKLCH oklch(0.6775 0.1072 324.98) color: oklch(0.6775 0.1072 324.98)
Lab lab(61.12 32.02 -22.66) color: lab(61.12 32.02 -22.66)
LCH lch(61.12 39.23 324.71) color: lch(61.12 39.23 324.71)

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 3.05:1
vs Black 6.88:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#A0A0AD — rgb(160, 160, 173)

Deuteranopia (Green-blind)

#A4A8AA — rgb(164, 168, 170)

Tritanopia (Blue-blind)

#B6A2A0 — rgb(182, 162, 160)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(297, 31%, 62%);

text

color: hsl(297, 31%, 62%);

border

border: 2px solid hsl(297, 31%, 62%);

gradient light

background: linear-gradient(to right, hsl(297, 31%, 82%), hsl(297, 31%, 62%));

gradient dark

background: linear-gradient(to right, hsl(297, 31%, 62%), hsl(297, 31%, 42%))

hex

background-color: #B980BC;

tailwind

bg-[hsl(297,31%,62%)]

box shadow

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

css variable

--color-primary: hsl(297, 31%, 62%);

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, 31%, 62%)?

HEX: #B980BC | RGB: rgb(185, 128, 188) | CMYK: 2%, 32%, 0%, 26% | HSV: 297°, 32%, 74%. Copy any format from the conversion table above.

What colors go well with #B980BC?

The complementary color is HSL(117, 31%, 62%). 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, 31%, 62%) in CSS?

As HSL: color: hsl(297, 31%, 62%); — As HEX: color: #B980BC; — As RGB: color: rgb(185, 128, 188); — Tailwind CSS: bg-[hsl(297,31%,62%)] — CSS variable: --color-primary: hsl(297, 31%, 62%);