HSL(291, 99%, 42%)
Vivid Purple — Purple color
Adjust Color
Color Information
Color Name
Vivid Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(291,99%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(291, 99%, 42%) | color: hsl(291, 99%, 42%) | |
| HEX | #B501D5 | color: #B501D5 | |
| RGB | rgb(181, 1, 213) | color: rgb(181, 1, 213) | |
| CMYK | cmyk(15%, 100%, 0%, 16%) | — | |
| HSV | hsv(291, 100%, 84%) | — | |
| HWB | hwb(291 0% 16%) | color: hwb(291 0% 16%) | |
| OKLCH | oklch(0.5641 0.2708 319.67) | color: oklch(0.5641 0.2708 319.67) | |
| Lab | lab(45.15 80.86 -62.21) | color: lab(45.15 80.86 -62.21) | |
| LCH | lch(45.15 102.02 322.43) | color: lch(45.15 102.02 322.43) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#6765A2 — rgb(103, 101, 162)
Deuteranopia (Green-blind)
#727F95 — rgb(114, 127, 149)
Tritanopia (Blue-blind)
#AC7970 — rgb(172, 121, 112)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(291, 99%, 42%);
text
color: hsl(291, 99%, 42%);
border
border: 2px solid hsl(291, 99%, 42%);
gradient light
background: linear-gradient(to right, hsl(291, 99%, 62%), hsl(291, 99%, 42%));
gradient dark
background: linear-gradient(to right, hsl(291, 99%, 42%), hsl(291, 99%, 22%))
hex
background-color: #B501D5;
tailwind
bg-[hsl(291,99%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(291, 99%, 42%, 0.4);
css variable
--color-primary: hsl(291, 99%, 42%);
Related Colors
Use Cases for Vivid Purple
Frequently Asked Questions
What are all the color codes for HSL(291, 99%, 42%)?
HEX: #B501D5 | RGB: rgb(181, 1, 213) | CMYK: 15%, 100%, 0%, 16% | HSV: 291°, 100%, 84%. Copy any format from the conversion table above.
What colors go well with #B501D5?
The complementary color is HSL(111, 99%, 42%). 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, 99%, 42%) in CSS?
As HSL: color: hsl(291, 99%, 42%); — As HEX: color: #B501D5; — As RGB: color: rgb(181, 1, 213); — Tailwind CSS: bg-[hsl(291,99%,42%)] — CSS variable: --color-primary: hsl(291, 99%, 42%);