HSL(297, 80%, 47%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,80%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 80%, 47%) | color: hsl(297, 80%, 47%) | |
| HEX | #CE18D8 | color: #CE18D8 | |
| RGB | rgb(206, 24, 216) | color: rgb(206, 24, 216) | |
| CMYK | cmyk(5%, 89%, 0%, 15%) | — | |
| HSV | hsv(297, 89%, 85%) | — | |
| HWB | hwb(297 9% 15%) | color: hwb(297 9% 15%) | |
| OKLCH | oklch(0.6091 0.2738 325.69) | color: oklch(0.6091 0.2738 325.69) | |
| Lab | lab(50.38 82.8 -55.29) | color: lab(50.38 82.8 -55.29) | |
| LCH | lch(50.38 99.56 326.27) | color: lch(50.38 99.56 326.27) |
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)
#7F7EAA — rgb(127, 126, 170)
Deuteranopia (Green-blind)
#8A979E — rgb(138, 151, 158)
Tritanopia (Blue-blind)
#C5857D — rgb(197, 133, 125)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 80%, 47%);
text
color: hsl(297, 80%, 47%);
border
border: 2px solid hsl(297, 80%, 47%);
gradient light
background: linear-gradient(to right, hsl(297, 80%, 67%), hsl(297, 80%, 47%));
gradient dark
background: linear-gradient(to right, hsl(297, 80%, 47%), hsl(297, 80%, 27%))
hex
background-color: #CE18D8;
tailwind
bg-[hsl(297,80%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 80%, 47%, 0.4);
css variable
--color-primary: hsl(297, 80%, 47%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 80%, 47%)?
HEX: #CE18D8 | RGB: rgb(206, 24, 216) | CMYK: 5%, 89%, 0%, 15% | HSV: 297°, 89%, 85%. Copy any format from the conversion table above.
What colors go well with #CE18D8?
The complementary color is HSL(117, 80%, 47%). 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, 80%, 47%) in CSS?
As HSL: color: hsl(297, 80%, 47%); — As HEX: color: #CE18D8; — As RGB: color: rgb(206, 24, 216); — Tailwind CSS: bg-[hsl(297,80%,47%)] — CSS variable: --color-primary: hsl(297, 80%, 47%);