HSL(310, 72%, 15%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(310,72%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(310, 72%, 15%) | color: hsl(310, 72%, 15%) | |
| HEX | #420B39 | color: #420B39 | |
| RGB | rgb(66, 11, 57) | color: rgb(66, 11, 57) | |
| CMYK | cmyk(0%, 83%, 14%, 74%) | — | |
| HSV | hsv(310, 83%, 26%) | — | |
| HWB | hwb(310 4% 74%) | color: hwb(310 4% 74%) | |
| OKLCH | oklch(0.2702 0.101 335.56) | color: oklch(0.2702 0.101 335.56) | |
| Lab | lab(13.79 31.44 -15.31) | color: lab(13.79 31.44 -15.31) | |
| LCH | lch(13.79 34.97 334.04) | color: lch(13.79 34.97 334.04) |
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)
#2A2A2E — rgb(42, 42, 46)
Deuteranopia (Green-blind)
#2D322B — rgb(45, 50, 43)
Tritanopia (Blue-blind)
#3F2523 — rgb(63, 37, 35)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(310, 72%, 15%);
text
color: hsl(310, 72%, 15%);
border
border: 2px solid hsl(310, 72%, 15%);
gradient light
background: linear-gradient(to right, hsl(310, 72%, 35%), hsl(310, 72%, 15%));
gradient dark
background: linear-gradient(to right, hsl(310, 72%, 15%), hsl(310, 72%, 0%))
hex
background-color: #420B39;
tailwind
bg-[hsl(310,72%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(310, 72%, 15%, 0.4);
css variable
--color-primary: hsl(310, 72%, 15%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(310, 72%, 15%)?
HEX: #420B39 | RGB: rgb(66, 11, 57) | CMYK: 0%, 83%, 14%, 74% | HSV: 310°, 83%, 26%. Copy any format from the conversion table above.
What colors go well with #420B39?
The complementary color is HSL(130, 72%, 15%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(310, 72%, 15%) in CSS?
As HSL: color: hsl(310, 72%, 15%); — As HEX: color: #420B39; — As RGB: color: rgb(66, 11, 57); — Tailwind CSS: bg-[hsl(310,72%,15%)] — CSS variable: --color-primary: hsl(310, 72%, 15%);