HSL(303, 45%, 15%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(303,45%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(303, 45%, 15%) | color: hsl(303, 45%, 15%) | |
| HEX | #371536 | color: #371536 | |
| RGB | rgb(55, 21, 54) | color: rgb(55, 21, 54) | |
| CMYK | cmyk(0%, 62%, 2%, 78%) | — | |
| HSV | hsv(302, 62%, 22%) | — | |
| HWB | hwb(302 8% 78%) | color: hwb(302 8% 78%) | |
| OKLCH | oklch(0.2621 0.0739 328.55) | color: oklch(0.2621 0.0739 328.55) | |
| Lab | lab(13.32 22.5 -14.04) | color: lab(13.32 22.5 -14.04) | |
| LCH | lch(13.32 26.52 328.04) | color: lch(13.32 26.52 328.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)
#28282E — rgb(40, 40, 46)
Deuteranopia (Green-blind)
#2A2D2C — rgb(42, 45, 44)
Tritanopia (Blue-blind)
#352826 — rgb(53, 40, 38)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(303, 45%, 15%);
text
color: hsl(303, 45%, 15%);
border
border: 2px solid hsl(303, 45%, 15%);
gradient light
background: linear-gradient(to right, hsl(303, 45%, 35%), hsl(303, 45%, 15%));
gradient dark
background: linear-gradient(to right, hsl(303, 45%, 15%), hsl(303, 45%, 0%))
hex
background-color: #371536;
tailwind
bg-[hsl(303,45%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(303, 45%, 15%, 0.4);
css variable
--color-primary: hsl(303, 45%, 15%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(303, 45%, 15%)?
HEX: #371536 | RGB: rgb(55, 21, 54) | CMYK: 0%, 62%, 2%, 78% | HSV: 302°, 62%, 22%. Copy any format from the conversion table above.
What colors go well with #371536?
The complementary color is HSL(123, 45%, 15%). For a triadic harmony, use hues 303°, 63°, and 183°. For analogous combinations, try hues 273° and 333°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(303, 45%, 15%) in CSS?
As HSL: color: hsl(303, 45%, 15%); — As HEX: color: #371536; — As RGB: color: rgb(55, 21, 54); — Tailwind CSS: bg-[hsl(303,45%,15%)] — CSS variable: --color-primary: hsl(303, 45%, 15%);