HSL(297, 54%, 47%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,54%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 54%, 47%) | color: hsl(297, 54%, 47%) | |
| HEX | #B237B9 | color: #B237B9 | |
| RGB | rgb(178, 55, 185) | color: rgb(178, 55, 185) | |
| CMYK | cmyk(4%, 70%, 0%, 27%) | — | |
| HSV | hsv(297, 70%, 73%) | — | |
| HWB | hwb(297 22% 27%) | color: hwb(297 22% 27%) | |
| OKLCH | oklch(0.5676 0.2151 325.63) | color: oklch(0.5676 0.2151 325.63) | |
| Lab | lab(46.58 64.85 -43.7) | color: lab(46.58 64.85 -43.7) | |
| LCH | lch(46.58 78.2 326.03) | color: lch(46.58 78.2 326.03) |
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)
#7D7C9A — rgb(125, 124, 154)
Deuteranopia (Green-blind)
#848D92 — rgb(132, 141, 146)
Tritanopia (Blue-blind)
#AC817B — rgb(172, 129, 123)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 54%, 47%);
text
color: hsl(297, 54%, 47%);
border
border: 2px solid hsl(297, 54%, 47%);
gradient light
background: linear-gradient(to right, hsl(297, 54%, 67%), hsl(297, 54%, 47%));
gradient dark
background: linear-gradient(to right, hsl(297, 54%, 47%), hsl(297, 54%, 27%))
hex
background-color: #B237B9;
tailwind
bg-[hsl(297,54%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 54%, 47%, 0.4);
css variable
--color-primary: hsl(297, 54%, 47%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 54%, 47%)?
HEX: #B237B9 | RGB: rgb(178, 55, 185) | CMYK: 4%, 70%, 0%, 27% | HSV: 297°, 70%, 73%. Copy any format from the conversion table above.
What colors go well with #B237B9?
The complementary color is HSL(117, 54%, 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, 54%, 47%) in CSS?
As HSL: color: hsl(297, 54%, 47%); — As HEX: color: #B237B9; — As RGB: color: rgb(178, 55, 185); — Tailwind CSS: bg-[hsl(297,54%,47%)] — CSS variable: --color-primary: hsl(297, 54%, 47%);