HSL(295, 40%, 37%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(295,40%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(295, 40%, 37%) | color: hsl(295, 40%, 37%) | |
| HEX | #7E3984 | color: #7E3984 | |
| RGB | rgb(126, 57, 132) | color: rgb(126, 57, 132) | |
| CMYK | cmyk(5%, 57%, 0%, 48%) | — | |
| HSV | hsv(295, 57%, 52%) | — | |
| HWB | hwb(295 22% 48%) | color: hwb(295 22% 48%) | |
| OKLCH | oklch(0.4659 0.1379 324.36) | color: oklch(0.4659 0.1379 324.36) | |
| Lab | lab(36.04 41.2 -29.07) | color: lab(36.04 41.2 -29.07) | |
| LCH | lch(36.04 50.42 324.79) | color: lch(36.04 50.42 324.79) |
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)
#606072 — rgb(96, 96, 114)
Deuteranopia (Green-blind)
#64696E — rgb(100, 105, 110)
Tritanopia (Blue-blind)
#7B6460 — rgb(123, 100, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(295, 40%, 37%);
text
color: hsl(295, 40%, 37%);
border
border: 2px solid hsl(295, 40%, 37%);
gradient light
background: linear-gradient(to right, hsl(295, 40%, 57%), hsl(295, 40%, 37%));
gradient dark
background: linear-gradient(to right, hsl(295, 40%, 37%), hsl(295, 40%, 17%))
hex
background-color: #7E3984;
tailwind
bg-[hsl(295,40%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(295, 40%, 37%, 0.4);
css variable
--color-primary: hsl(295, 40%, 37%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(295, 40%, 37%)?
HEX: #7E3984 | RGB: rgb(126, 57, 132) | CMYK: 5%, 57%, 0%, 48% | HSV: 295°, 57%, 52%. Copy any format from the conversion table above.
What colors go well with #7E3984?
The complementary color is HSL(115, 40%, 37%). For a triadic harmony, use hues 295°, 55°, and 175°. For analogous combinations, try hues 265° and 325°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(295, 40%, 37%) in CSS?
As HSL: color: hsl(295, 40%, 37%); — As HEX: color: #7E3984; — As RGB: color: rgb(126, 57, 132); — Tailwind CSS: bg-[hsl(295,40%,37%)] — CSS variable: --color-primary: hsl(295, 40%, 37%);