HSL(312, 42%, 17%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(312,42%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 42%, 17%) | color: hsl(312, 42%, 17%) | |
| HEX | #3E1936 | color: #3E1936 | |
| RGB | rgb(62, 25, 54) | color: rgb(62, 25, 54) | |
| CMYK | cmyk(0%, 60%, 13%, 76%) | — | |
| HSV | hsv(313, 60%, 24%) | — | |
| HWB | hwb(313 10% 76%) | color: hwb(313 10% 76%) | |
| OKLCH | oklch(0.2801 0.0719 336.27) | color: oklch(0.2801 0.0719 336.27) | |
| Lab | lab(15.41 22.61 -10.7) | color: lab(15.41 22.61 -10.7) | |
| LCH | lch(15.41 25.01 334.67) | color: lch(15.41 25.01 334.67) |
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)
#2E2E2F — rgb(46, 46, 47)
Deuteranopia (Green-blind)
#30332D — rgb(48, 51, 45)
Tritanopia (Blue-blind)
#3C2928 — rgb(60, 41, 40)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 42%, 17%);
text
color: hsl(312, 42%, 17%);
border
border: 2px solid hsl(312, 42%, 17%);
gradient light
background: linear-gradient(to right, hsl(312, 42%, 37%), hsl(312, 42%, 17%));
gradient dark
background: linear-gradient(to right, hsl(312, 42%, 17%), hsl(312, 42%, 0%))
hex
background-color: #3E1936;
tailwind
bg-[hsl(312,42%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 42%, 17%, 0.4);
css variable
--color-primary: hsl(312, 42%, 17%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 42%, 17%)?
HEX: #3E1936 | RGB: rgb(62, 25, 54) | CMYK: 0%, 60%, 13%, 76% | HSV: 313°, 60%, 24%. Copy any format from the conversion table above.
What colors go well with #3E1936?
The complementary color is HSL(132, 42%, 17%). 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, 42%, 17%) in CSS?
As HSL: color: hsl(312, 42%, 17%); — As HEX: color: #3E1936; — As RGB: color: rgb(62, 25, 54); — Tailwind CSS: bg-[hsl(312,42%,17%)] — CSS variable: --color-primary: hsl(312, 42%, 17%);