HSL(291, 62%, 51%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(291,62%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(291, 62%, 51%) color: hsl(291, 62%, 51%)
HEX #B835D0 color: #B835D0
RGB rgb(184, 53, 208) color: rgb(184, 53, 208)
CMYK cmyk(12%, 75%, 0%, 18%)
HSV hsv(291, 75%, 82%)
HWB hwb(291 21% 18%) color: hwb(291 21% 18%)
OKLCH oklch(0.5884 0.2385 320.88) color: oklch(0.5884 0.2385 320.88)
Lab lab(48.63 70.8 -53.71) color: lab(48.63 70.8 -53.71)
LCH lch(48.63 88.87 322.82) color: lch(48.63 88.87 322.82)

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 4.71:1
vs Black 4.46: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)

#7F7EAA — rgb(127, 126, 170)

Deuteranopia (Green-blind)

#8791A2 — rgb(135, 145, 162)

Tritanopia (Blue-blind)

#B18D86 — rgb(177, 141, 134)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(291, 62%, 51%);

text

color: hsl(291, 62%, 51%);

border

border: 2px solid hsl(291, 62%, 51%);

gradient light

background: linear-gradient(to right, hsl(291, 62%, 71%), hsl(291, 62%, 51%));

gradient dark

background: linear-gradient(to right, hsl(291, 62%, 51%), hsl(291, 62%, 31%))

hex

background-color: #B835D0;

tailwind

bg-[hsl(291,62%,51%)]

box shadow

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

css variable

--color-primary: hsl(291, 62%, 51%);

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(291, 62%, 51%)?

HEX: #B835D0 | RGB: rgb(184, 53, 208) | CMYK: 12%, 75%, 0%, 18% | HSV: 291°, 75%, 82%. Copy any format from the conversion table above.

What colors go well with #B835D0?

The complementary color is HSL(111, 62%, 51%). For a triadic harmony, use hues 291°, 51°, and 171°. For analogous combinations, try hues 261° and 321°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(291, 62%, 51%) in CSS?

As HSL: color: hsl(291, 62%, 51%); — As HEX: color: #B835D0; — As RGB: color: rgb(184, 53, 208); — Tailwind CSS: bg-[hsl(291,62%,51%)] — CSS variable: --color-primary: hsl(291, 62%, 51%);