HSL(297, 61%, 54%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,61%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 61%, 54%) | color: hsl(297, 61%, 54%) | |
| HEX | #CA42D1 | color: #CA42D1 | |
| RGB | rgb(202, 66, 209) | color: rgb(202, 66, 209) | |
| CMYK | cmyk(3%, 68%, 0%, 18%) | — | |
| HSV | hsv(297, 68%, 82%) | — | |
| HWB | hwb(297 26% 18%) | color: hwb(297 26% 18%) | |
| OKLCH | oklch(0.6253 0.233 325.84) | color: oklch(0.6253 0.233 325.84) | |
| Lab | lab(53.01 70.26 -47.12) | color: lab(53.01 70.26 -47.12) | |
| LCH | lch(53.01 84.6 326.15) | color: lch(53.01 84.6 326.15) |
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)
#8F8EAE — rgb(143, 142, 174)
Deuteranopia (Green-blind)
#97A1A6 — rgb(151, 161, 166)
Tritanopia (Blue-blind)
#C3938D — rgb(195, 147, 141)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 61%, 54%);
text
color: hsl(297, 61%, 54%);
border
border: 2px solid hsl(297, 61%, 54%);
gradient light
background: linear-gradient(to right, hsl(297, 61%, 74%), hsl(297, 61%, 54%));
gradient dark
background: linear-gradient(to right, hsl(297, 61%, 54%), hsl(297, 61%, 34%))
hex
background-color: #CA42D1;
tailwind
bg-[hsl(297,61%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 61%, 54%, 0.4);
css variable
--color-primary: hsl(297, 61%, 54%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 61%, 54%)?
HEX: #CA42D1 | RGB: rgb(202, 66, 209) | CMYK: 3%, 68%, 0%, 18% | HSV: 297°, 68%, 82%. Copy any format from the conversion table above.
What colors go well with #CA42D1?
The complementary color is HSL(117, 61%, 54%). 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, 61%, 54%) in CSS?
As HSL: color: hsl(297, 61%, 54%); — As HEX: color: #CA42D1; — As RGB: color: rgb(202, 66, 209); — Tailwind CSS: bg-[hsl(297,61%,54%)] — CSS variable: --color-primary: hsl(297, 61%, 54%);