HSL(297, 40%, 57%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,40%,57%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 40%, 57%) | color: hsl(297, 40%, 57%) | |
| HEX | #B965BD | color: #B965BD | |
| RGB | rgb(185, 101, 189) | color: rgb(185, 101, 189) | |
| CMYK | cmyk(2%, 47%, 0%, 26%) | — | |
| HSV | hsv(297, 47%, 74%) | — | |
| HWB | hwb(297 39% 26%) | color: hwb(297 39% 26%) | |
| OKLCH | oklch(0.6345 0.1557 325.54) | color: oklch(0.6345 0.1557 325.54) | |
| Lab | lab(55.38 46.74 -32.1) | color: lab(55.38 46.74 -32.1) | |
| LCH | lch(55.38 56.7 325.52) | color: lch(55.38 56.7 325.52) |
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)
#9594A8 — rgb(149, 148, 168)
Deuteranopia (Green-blind)
#9AA0A3 — rgb(154, 160, 163)
Tritanopia (Blue-blind)
#B59793 — rgb(181, 151, 147)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 40%, 57%);
text
color: hsl(297, 40%, 57%);
border
border: 2px solid hsl(297, 40%, 57%);
gradient light
background: linear-gradient(to right, hsl(297, 40%, 77%), hsl(297, 40%, 57%));
gradient dark
background: linear-gradient(to right, hsl(297, 40%, 57%), hsl(297, 40%, 37%))
hex
background-color: #B965BD;
tailwind
bg-[hsl(297,40%,57%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 40%, 57%, 0.4);
css variable
--color-primary: hsl(297, 40%, 57%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 40%, 57%)?
HEX: #B965BD | RGB: rgb(185, 101, 189) | CMYK: 2%, 47%, 0%, 26% | HSV: 297°, 47%, 74%. Copy any format from the conversion table above.
What colors go well with #B965BD?
The complementary color is HSL(117, 40%, 57%). 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, 40%, 57%) in CSS?
As HSL: color: hsl(297, 40%, 57%); — As HEX: color: #B965BD; — As RGB: color: rgb(185, 101, 189); — Tailwind CSS: bg-[hsl(297,40%,57%)] — CSS variable: --color-primary: hsl(297, 40%, 57%);