HSL(297, 90%, 40%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(297,90%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(297, 90%, 40%) color: hsl(297, 90%, 40%)
HEX #B90AC2 color: #B90AC2
RGB rgb(185, 10, 194) color: rgb(185, 10, 194)
CMYK cmyk(5%, 95%, 0%, 24%)
HSV hsv(297, 95%, 76%)
HWB hwb(297 4% 24%) color: hwb(297 4% 24%)
OKLCH oklch(0.5592 0.2565 325.77) color: oklch(0.5592 0.2565 325.77)
Lab lab(44.84 77.63 -51.67) color: lab(44.84 77.63 -51.67)
LCH lch(44.84 93.25 326.35) color: lch(44.84 93.25 326.35)

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 5.41:1
vs Black 3.89:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#6D6C95 — rgb(109, 108, 149)

Deuteranopia (Green-blind)

#77858B — rgb(119, 133, 139)

Tritanopia (Blue-blind)

#B0726B — rgb(176, 114, 107)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(297, 90%, 40%);

text

color: hsl(297, 90%, 40%);

border

border: 2px solid hsl(297, 90%, 40%);

gradient light

background: linear-gradient(to right, hsl(297, 90%, 60%), hsl(297, 90%, 40%));

gradient dark

background: linear-gradient(to right, hsl(297, 90%, 40%), hsl(297, 90%, 20%))

hex

background-color: #B90AC2;

tailwind

bg-[hsl(297,90%,40%)]

box shadow

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

css variable

--color-primary: hsl(297, 90%, 40%);

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, 90%, 40%)?

HEX: #B90AC2 | RGB: rgb(185, 10, 194) | CMYK: 5%, 95%, 0%, 24% | HSV: 297°, 95%, 76%. Copy any format from the conversion table above.

What colors go well with #B90AC2?

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

As HSL: color: hsl(297, 90%, 40%); — As HEX: color: #B90AC2; — As RGB: color: rgb(185, 10, 194); — Tailwind CSS: bg-[hsl(297,90%,40%)] — CSS variable: --color-primary: hsl(297, 90%, 40%);