HSL(299, 80%, 40%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(299,80%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(299, 80%, 40%) color: hsl(299, 80%, 40%)
HEX #B514B8 color: #B514B8
RGB rgb(181, 20, 184) color: rgb(181, 20, 184)
CMYK cmyk(2%, 89%, 0%, 28%)
HSV hsv(299, 89%, 72%)
HWB hwb(299 8% 28%) color: hwb(299 8% 28%)
OKLCH oklch(0.5495 0.2444 327.39) color: oklch(0.5495 0.2444 327.39)
Lab lab(43.93 74.22 -47.32) color: lab(43.93 74.22 -47.32)
LCH lch(43.93 88.02 327.48) color: lch(43.93 88.02 327.48)

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.59:1
vs Black 3.76: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)

#6F6E90 — rgb(111, 110, 144)

Deuteranopia (Green-blind)

#798587 — rgb(121, 133, 135)

Tritanopia (Blue-blind)

#AD716A — rgb(173, 113, 106)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(299, 80%, 40%);

text

color: hsl(299, 80%, 40%);

border

border: 2px solid hsl(299, 80%, 40%);

gradient light

background: linear-gradient(to right, hsl(299, 80%, 60%), hsl(299, 80%, 40%));

gradient dark

background: linear-gradient(to right, hsl(299, 80%, 40%), hsl(299, 80%, 20%))

hex

background-color: #B514B8;

tailwind

bg-[hsl(299,80%,40%)]

box shadow

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

css variable

--color-primary: hsl(299, 80%, 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(299, 80%, 40%)?

HEX: #B514B8 | RGB: rgb(181, 20, 184) | CMYK: 2%, 89%, 0%, 28% | HSV: 299°, 89%, 72%. Copy any format from the conversion table above.

What colors go well with #B514B8?

The complementary color is HSL(119, 80%, 40%). For a triadic harmony, use hues 299°, 59°, and 179°. For analogous combinations, try hues 269° and 329°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(299, 80%, 40%) in CSS?

As HSL: color: hsl(299, 80%, 40%); — As HEX: color: #B514B8; — As RGB: color: rgb(181, 20, 184); — Tailwind CSS: bg-[hsl(299,80%,40%)] — CSS variable: --color-primary: hsl(299, 80%, 40%);