HSL(297, 31%, 28%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,31%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 31%, 28%) | color: hsl(297, 31%, 28%) | |
| HEX | #5B315E | color: #5B315E | |
| RGB | rgb(91, 49, 94) | color: rgb(91, 49, 94) | |
| CMYK | cmyk(3%, 48%, 0%, 63%) | — | |
| HSV | hsv(296, 48%, 37%) | — | |
| HWB | hwb(296 19% 63%) | color: hwb(296 19% 63%) | |
| OKLCH | oklch(0.3849 0.0899 324.69) | color: oklch(0.3849 0.0899 324.69) | |
| Lab | lab(27.38 26.84 -18.93) | color: lab(27.38 26.84 -18.93) | |
| LCH | lch(27.38 32.84 324.81) | color: lch(27.38 32.84 324.81) |
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)
#494853 — rgb(73, 72, 83)
Deuteranopia (Green-blind)
#4B4E51 — rgb(75, 78, 81)
Tritanopia (Blue-blind)
#594B49 — rgb(89, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 31%, 28%);
text
color: hsl(297, 31%, 28%);
border
border: 2px solid hsl(297, 31%, 28%);
gradient light
background: linear-gradient(to right, hsl(297, 31%, 48%), hsl(297, 31%, 28%));
gradient dark
background: linear-gradient(to right, hsl(297, 31%, 28%), hsl(297, 31%, 8%))
hex
background-color: #5B315E;
tailwind
bg-[hsl(297,31%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 31%, 28%, 0.4);
css variable
--color-primary: hsl(297, 31%, 28%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 31%, 28%)?
HEX: #5B315E | RGB: rgb(91, 49, 94) | CMYK: 3%, 48%, 0%, 63% | HSV: 296°, 48%, 37%. Copy any format from the conversion table above.
What colors go well with #5B315E?
The complementary color is HSL(117, 31%, 28%). 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, 31%, 28%) in CSS?
As HSL: color: hsl(297, 31%, 28%); — As HEX: color: #5B315E; — As RGB: color: rgb(91, 49, 94); — Tailwind CSS: bg-[hsl(297,31%,28%)] — CSS variable: --color-primary: hsl(297, 31%, 28%);