HSL(291, 81%, 56%)
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,81%,56%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(291, 81%, 56%) | color: hsl(291, 81%, 56%) | |
| HEX | #CE34EA | color: #CE34EA | |
| RGB | rgb(206, 52, 234) | color: rgb(206, 52, 234) | |
| CMYK | cmyk(12%, 78%, 0%, 8%) | — | |
| HSV | hsv(291, 78%, 92%) | — | |
| HWB | hwb(291 20% 8%) | color: hwb(291 20% 8%) | |
| OKLCH | oklch(0.6347 0.2683 320.79) | color: oklch(0.6347 0.2683 320.79) | |
| Lab | lab(53.51 79.78 -60.46) | color: lab(53.51 79.78 -60.46) | |
| LCH | lch(53.51 100.1 322.84) | color: lch(53.51 100.1 322.84) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8B8ABE — rgb(139, 138, 190)
Deuteranopia (Green-blind)
#94A0B3 — rgb(148, 160, 179)
Tritanopia (Blue-blind)
#C69B94 — rgb(198, 155, 148)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(291, 81%, 56%);
text
color: hsl(291, 81%, 56%);
border
border: 2px solid hsl(291, 81%, 56%);
gradient light
background: linear-gradient(to right, hsl(291, 81%, 76%), hsl(291, 81%, 56%));
gradient dark
background: linear-gradient(to right, hsl(291, 81%, 56%), hsl(291, 81%, 36%))
hex
background-color: #CE34EA;
tailwind
bg-[hsl(291,81%,56%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(291, 81%, 56%, 0.4);
css variable
--color-primary: hsl(291, 81%, 56%);
Related Colors
Use Cases for Vivid Purple
Frequently Asked Questions
What are all the color codes for HSL(291, 81%, 56%)?
HEX: #CE34EA | RGB: rgb(206, 52, 234) | CMYK: 12%, 78%, 0%, 8% | HSV: 291°, 78%, 92%. Copy any format from the conversion table above.
What colors go well with #CE34EA?
The complementary color is HSL(111, 81%, 56%). 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, 81%, 56%) in CSS?
As HSL: color: hsl(291, 81%, 56%); — As HEX: color: #CE34EA; — As RGB: color: rgb(206, 52, 234); — Tailwind CSS: bg-[hsl(291,81%,56%)] — CSS variable: --color-primary: hsl(291, 81%, 56%);