HSL(297, 94%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,94%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 94%, 40%) | color: hsl(297, 94%, 40%) | |
| HEX | #BC06C6 | color: #BC06C6 | |
| RGB | rgb(188, 6, 198) | color: rgb(188, 6, 198) | |
| CMYK | cmyk(5%, 97%, 0%, 22%) | — | |
| HSV | hsv(297, 97%, 78%) | — | |
| HWB | hwb(297 2% 22%) | color: hwb(297 2% 22%) | |
| OKLCH | oklch(0.5656 0.2614 325.56) | color: oklch(0.5656 0.2614 325.56) | |
| Lab | lab(45.5 79.08 -52.92) | color: lab(45.5 79.08 -52.92) | |
| LCH | lch(45.5 95.15 326.21) | color: lch(45.5 95.15 326.21) |
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)
#6D6C98 — rgb(109, 108, 152)
Deuteranopia (Green-blind)
#78858C — rgb(120, 133, 140)
Tritanopia (Blue-blind)
#B3736B — rgb(179, 115, 107)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 94%, 40%);
text
color: hsl(297, 94%, 40%);
border
border: 2px solid hsl(297, 94%, 40%);
gradient light
background: linear-gradient(to right, hsl(297, 94%, 60%), hsl(297, 94%, 40%));
gradient dark
background: linear-gradient(to right, hsl(297, 94%, 40%), hsl(297, 94%, 20%))
hex
background-color: #BC06C6;
tailwind
bg-[hsl(297,94%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 94%, 40%, 0.4);
css variable
--color-primary: hsl(297, 94%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 94%, 40%)?
HEX: #BC06C6 | RGB: rgb(188, 6, 198) | CMYK: 5%, 97%, 0%, 22% | HSV: 297°, 97%, 78%. Copy any format from the conversion table above.
What colors go well with #BC06C6?
The complementary color is HSL(117, 94%, 40%). 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, 94%, 40%) in CSS?
As HSL: color: hsl(297, 94%, 40%); — As HEX: color: #BC06C6; — As RGB: color: rgb(188, 6, 198); — Tailwind CSS: bg-[hsl(297,94%,40%)] — CSS variable: --color-primary: hsl(297, 94%, 40%);