HSL(312, 51%, 37%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,51%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 51%, 37%) | color: hsl(312, 51%, 37%) | |
| HEX | #8E2E7B | color: #8E2E7B | |
| RGB | rgb(142, 46, 123) | color: rgb(142, 46, 123) | |
| CMYK | cmyk(0%, 68%, 13%, 44%) | — | |
| HSV | hsv(312, 68%, 56%) | — | |
| HWB | hwb(312 18% 44%) | color: hwb(312 18% 44%) | |
| OKLCH | oklch(0.471 0.1572 336.59) | color: oklch(0.471 0.1572 336.59) | |
| Lab | lab(36.25 49.19 -22.99) | color: lab(36.25 49.19 -22.99) | |
| LCH | lch(36.25 54.3 334.95) | color: lch(36.25 54.3 334.95) |
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)
#646468 — rgb(100, 100, 104)
Deuteranopia (Green-blind)
#6A7164 — rgb(106, 113, 100)
Tritanopia (Blue-blind)
#895A56 — rgb(137, 90, 86)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 51%, 37%);
text
color: hsl(312, 51%, 37%);
border
border: 2px solid hsl(312, 51%, 37%);
gradient light
background: linear-gradient(to right, hsl(312, 51%, 57%), hsl(312, 51%, 37%));
gradient dark
background: linear-gradient(to right, hsl(312, 51%, 37%), hsl(312, 51%, 17%))
hex
background-color: #8E2E7B;
tailwind
bg-[hsl(312,51%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 51%, 37%, 0.4);
css variable
--color-primary: hsl(312, 51%, 37%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 51%, 37%)?
HEX: #8E2E7B | RGB: rgb(142, 46, 123) | CMYK: 0%, 68%, 13%, 44% | HSV: 312°, 68%, 56%. Copy any format from the conversion table above.
What colors go well with #8E2E7B?
The complementary color is HSL(132, 51%, 37%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(312, 51%, 37%) in CSS?
As HSL: color: hsl(312, 51%, 37%); — As HEX: color: #8E2E7B; — As RGB: color: rgb(142, 46, 123); — Tailwind CSS: bg-[hsl(312,51%,37%)] — CSS variable: --color-primary: hsl(312, 51%, 37%);