HSL(297, 43%, 39%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,43%,39%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 43%, 39%) | color: hsl(297, 43%, 39%) | |
| HEX | #8A398E | color: #8A398E | |
| RGB | rgb(138, 57, 142) | color: rgb(138, 57, 142) | |
| CMYK | cmyk(3%, 60%, 0%, 44%) | — | |
| HSV | hsv(297, 60%, 56%) | — | |
| HWB | hwb(297 22% 44%) | color: hwb(297 22% 44%) | |
| OKLCH | oklch(0.4882 0.1545 325.75) | color: oklch(0.4882 0.1545 325.75) | |
| Lab | lab(38.35 46.5 -31.46) | color: lab(38.35 46.5 -31.46) | |
| LCH | lch(38.35 56.14 325.92) | color: lch(38.35 56.14 325.92) |
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)
#676679 — rgb(103, 102, 121)
Deuteranopia (Green-blind)
#6C7275 — rgb(108, 114, 117)
Tritanopia (Blue-blind)
#866966 — rgb(134, 105, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 43%, 39%);
text
color: hsl(297, 43%, 39%);
border
border: 2px solid hsl(297, 43%, 39%);
gradient light
background: linear-gradient(to right, hsl(297, 43%, 59%), hsl(297, 43%, 39%));
gradient dark
background: linear-gradient(to right, hsl(297, 43%, 39%), hsl(297, 43%, 19%))
hex
background-color: #8A398E;
tailwind
bg-[hsl(297,43%,39%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 43%, 39%, 0.4);
css variable
--color-primary: hsl(297, 43%, 39%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 43%, 39%)?
HEX: #8A398E | RGB: rgb(138, 57, 142) | CMYK: 3%, 60%, 0%, 44% | HSV: 297°, 60%, 56%. Copy any format from the conversion table above.
What colors go well with #8A398E?
The complementary color is HSL(117, 43%, 39%). 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, 43%, 39%) in CSS?
As HSL: color: hsl(297, 43%, 39%); — As HEX: color: #8A398E; — As RGB: color: rgb(138, 57, 142); — Tailwind CSS: bg-[hsl(297,43%,39%)] — CSS variable: --color-primary: hsl(297, 43%, 39%);