HSL(308, 17%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(308,17%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(308, 17%, 42%) | color: hsl(308, 17%, 42%) | |
| HEX | #7D5978 | color: #7D5978 | |
| RGB | rgb(125, 89, 120) | color: rgb(125, 89, 120) | |
| CMYK | cmyk(0%, 29%, 4%, 51%) | — | |
| HSV | hsv(308, 29%, 49%) | — | |
| HWB | hwb(308 35% 51%) | color: hwb(308 35% 51%) | |
| OKLCH | oklch(0.5127 0.0653 331.37) | color: oklch(0.5127 0.0653 331.37) | |
| Lab | lab(42.55 20.31 -11.66) | color: lab(42.55 20.31 -11.66) | |
| LCH | lch(42.55 23.42 330.14) | color: lch(42.55 23.42 330.14) |
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)
#6D6D70 — rgb(109, 109, 112)
Deuteranopia (Green-blind)
#70726F — rgb(112, 114, 111)
Tritanopia (Blue-blind)
#7B6B69 — rgb(123, 107, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(308, 17%, 42%);
text
color: hsl(308, 17%, 42%);
border
border: 2px solid hsl(308, 17%, 42%);
gradient light
background: linear-gradient(to right, hsl(308, 17%, 62%), hsl(308, 17%, 42%));
gradient dark
background: linear-gradient(to right, hsl(308, 17%, 42%), hsl(308, 17%, 22%))
hex
background-color: #7D5978;
tailwind
bg-[hsl(308,17%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(308, 17%, 42%, 0.4);
css variable
--color-primary: hsl(308, 17%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(308, 17%, 42%)?
HEX: #7D5978 | RGB: rgb(125, 89, 120) | CMYK: 0%, 29%, 4%, 51% | HSV: 308°, 29%, 49%. Copy any format from the conversion table above.
What colors go well with #7D5978?
The complementary color is HSL(128, 17%, 42%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(308, 17%, 42%) in CSS?
As HSL: color: hsl(308, 17%, 42%); — As HEX: color: #7D5978; — As RGB: color: rgb(125, 89, 120); — Tailwind CSS: bg-[hsl(308,17%,42%)] — CSS variable: --color-primary: hsl(308, 17%, 42%);