HSL(307, 55%, 40%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(307,55%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(307, 55%, 40%) | color: hsl(307, 55%, 40%) | |
| HEX | #9E2E91 | color: #9E2E91 | |
| RGB | rgb(158, 46, 145) | color: rgb(158, 46, 145) | |
| CMYK | cmyk(0%, 71%, 8%, 38%) | — | |
| HSV | hsv(307, 71%, 62%) | — | |
| HWB | hwb(307 18% 38%) | color: hwb(307 18% 38%) | |
| OKLCH | oklch(0.5072 0.1838 333.02) | color: oklch(0.5072 0.1838 333.02) | |
| Lab | lab(40.03 56.82 -30.42) | color: lab(40.03 56.82 -30.42) | |
| LCH | lch(40.03 64.45 331.84) | color: lch(40.03 64.45 331.84) |
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)
#6E6C79 — rgb(110, 108, 121)
Deuteranopia (Green-blind)
#747C73 — rgb(116, 124, 115)
Tritanopia (Blue-blind)
#986662 — rgb(152, 102, 98)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(307, 55%, 40%);
text
color: hsl(307, 55%, 40%);
border
border: 2px solid hsl(307, 55%, 40%);
gradient light
background: linear-gradient(to right, hsl(307, 55%, 60%), hsl(307, 55%, 40%));
gradient dark
background: linear-gradient(to right, hsl(307, 55%, 40%), hsl(307, 55%, 20%))
hex
background-color: #9E2E91;
tailwind
bg-[hsl(307,55%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(307, 55%, 40%, 0.4);
css variable
--color-primary: hsl(307, 55%, 40%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(307, 55%, 40%)?
HEX: #9E2E91 | RGB: rgb(158, 46, 145) | CMYK: 0%, 71%, 8%, 38% | HSV: 307°, 71%, 62%. Copy any format from the conversion table above.
What colors go well with #9E2E91?
The complementary color is HSL(127, 55%, 40%). For a triadic harmony, use hues 307°, 67°, and 187°. For analogous combinations, try hues 277° and 337°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(307, 55%, 40%) in CSS?
As HSL: color: hsl(307, 55%, 40%); — As HEX: color: #9E2E91; — As RGB: color: rgb(158, 46, 145); — Tailwind CSS: bg-[hsl(307,55%,40%)] — CSS variable: --color-primary: hsl(307, 55%, 40%);