HSL(308, 26%, 17%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(308,26%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(308, 26%, 17%) | color: hsl(308, 26%, 17%) | |
| HEX | #372034 | color: #372034 | |
| RGB | rgb(55, 32, 52) | color: rgb(55, 32, 52) | |
| CMYK | cmyk(0%, 42%, 5%, 78%) | — | |
| HSV | hsv(308, 42%, 22%) | — | |
| HWB | hwb(308 13% 78%) | color: hwb(308 13% 78%) | |
| OKLCH | oklch(0.2816 0.0483 331.52) | color: oklch(0.2816 0.0483 331.52) | |
| Lab | lab(15.97 14.99 -8.53) | color: lab(15.97 14.99 -8.53) | |
| LCH | lch(15.97 17.25 330.36) | color: lch(15.97 17.25 330.36) |
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)
#2D2D2F — rgb(45, 45, 47)
Deuteranopia (Green-blind)
#2E302E — rgb(46, 48, 46)
Tritanopia (Blue-blind)
#362B2B — rgb(54, 43, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(308, 26%, 17%);
text
color: hsl(308, 26%, 17%);
border
border: 2px solid hsl(308, 26%, 17%);
gradient light
background: linear-gradient(to right, hsl(308, 26%, 37%), hsl(308, 26%, 17%));
gradient dark
background: linear-gradient(to right, hsl(308, 26%, 17%), hsl(308, 26%, 0%))
hex
background-color: #372034;
tailwind
bg-[hsl(308,26%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(308, 26%, 17%, 0.4);
css variable
--color-primary: hsl(308, 26%, 17%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(308, 26%, 17%)?
HEX: #372034 | RGB: rgb(55, 32, 52) | CMYK: 0%, 42%, 5%, 78% | HSV: 308°, 42%, 22%. Copy any format from the conversion table above.
What colors go well with #372034?
The complementary color is HSL(128, 26%, 17%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(308, 26%, 17%) in CSS?
As HSL: color: hsl(308, 26%, 17%); — As HEX: color: #372034; — As RGB: color: rgb(55, 32, 52); — Tailwind CSS: bg-[hsl(308,26%,17%)] — CSS variable: --color-primary: hsl(308, 26%, 17%);