HSL(301, 52%, 15%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(301,52%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(301, 52%, 15%) | color: hsl(301, 52%, 15%) | |
| HEX | #3A1239 | color: #3A1239 | |
| RGB | rgb(58, 18, 57) | color: rgb(58, 18, 57) | |
| CMYK | cmyk(0%, 69%, 2%, 77%) | — | |
| HSV | hsv(302, 69%, 23%) | — | |
| HWB | hwb(302 7% 77%) | color: hwb(302 7% 77%) | |
| OKLCH | oklch(0.2643 0.0848 328.64) | color: oklch(0.2643 0.0848 328.64) | |
| Lab | lab(13.4 25.84 -16.03) | color: lab(13.4 25.84 -16.03) | |
| LCH | lch(13.4 30.41 328.19) | color: lch(13.4 30.41 328.19) |
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)
#292830 — rgb(41, 40, 48)
Deuteranopia (Green-blind)
#2B2E2D — rgb(43, 46, 45)
Tritanopia (Blue-blind)
#382826 — rgb(56, 40, 38)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(301, 52%, 15%);
text
color: hsl(301, 52%, 15%);
border
border: 2px solid hsl(301, 52%, 15%);
gradient light
background: linear-gradient(to right, hsl(301, 52%, 35%), hsl(301, 52%, 15%));
gradient dark
background: linear-gradient(to right, hsl(301, 52%, 15%), hsl(301, 52%, 0%))
hex
background-color: #3A1239;
tailwind
bg-[hsl(301,52%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(301, 52%, 15%, 0.4);
css variable
--color-primary: hsl(301, 52%, 15%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(301, 52%, 15%)?
HEX: #3A1239 | RGB: rgb(58, 18, 57) | CMYK: 0%, 69%, 2%, 77% | HSV: 302°, 69%, 23%. Copy any format from the conversion table above.
What colors go well with #3A1239?
The complementary color is HSL(121, 52%, 15%). For a triadic harmony, use hues 301°, 61°, and 181°. For analogous combinations, try hues 271° and 331°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(301, 52%, 15%) in CSS?
As HSL: color: hsl(301, 52%, 15%); — As HEX: color: #3A1239; — As RGB: color: rgb(58, 18, 57); — Tailwind CSS: bg-[hsl(301,52%,15%)] — CSS variable: --color-primary: hsl(301, 52%, 15%);