HSL(297, 43%, 34%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,43%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 43%, 34%) | color: hsl(297, 43%, 34%) | |
| HEX | #78317C | color: #78317C | |
| RGB | rgb(120, 49, 124) | color: rgb(120, 49, 124) | |
| CMYK | cmyk(3%, 60%, 0%, 51%) | — | |
| HSV | hsv(297, 60%, 49%) | — | |
| HWB | hwb(297 20% 51%) | color: hwb(297 20% 51%) | |
| OKLCH | oklch(0.4422 0.1395 325.49) | color: oklch(0.4422 0.1395 325.49) | |
| Lab | lab(33.23 41.93 -28.58) | color: lab(33.23 41.93 -28.58) | |
| LCH | lch(33.23 50.74 325.72) | color: lch(33.23 50.74 325.72) |
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)
#59596A — rgb(89, 89, 106)
Deuteranopia (Green-blind)
#5D6366 — rgb(93, 99, 102)
Tritanopia (Blue-blind)
#745C58 — rgb(116, 92, 88)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 43%, 34%);
text
color: hsl(297, 43%, 34%);
border
border: 2px solid hsl(297, 43%, 34%);
gradient light
background: linear-gradient(to right, hsl(297, 43%, 54%), hsl(297, 43%, 34%));
gradient dark
background: linear-gradient(to right, hsl(297, 43%, 34%), hsl(297, 43%, 14%))
hex
background-color: #78317C;
tailwind
bg-[hsl(297,43%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 43%, 34%, 0.4);
css variable
--color-primary: hsl(297, 43%, 34%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 43%, 34%)?
HEX: #78317C | RGB: rgb(120, 49, 124) | CMYK: 3%, 60%, 0%, 51% | HSV: 297°, 60%, 49%. Copy any format from the conversion table above.
What colors go well with #78317C?
The complementary color is HSL(117, 43%, 34%). 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%, 34%) in CSS?
As HSL: color: hsl(297, 43%, 34%); — As HEX: color: #78317C; — As RGB: color: rgb(120, 49, 124); — Tailwind CSS: bg-[hsl(297,43%,34%)] — CSS variable: --color-primary: hsl(297, 43%, 34%);