HSL(296, 34%, 7%)
Very Dark Purple — Purple color
Adjust Color
Color Information
Color Name
Very Dark Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(296,34%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(296, 34%, 7%) | color: hsl(296, 34%, 7%) | |
| HEX | #170C18 | color: #170C18 | |
| RGB | rgb(23, 12, 24) | color: rgb(23, 12, 24) | |
| CMYK | cmyk(4%, 50%, 0%, 91%) | — | |
| HSV | hsv(295, 50%, 9%) | — | |
| HWB | hwb(295 5% 91%) | color: hwb(295 5% 91%) | |
| OKLCH | oklch(0.1757 0.0296 323.84) | color: oklch(0.1757 0.0296 323.84) | |
| Lab | lab(4.62 6.71 -5.32) | color: lab(4.62 6.71 -5.32) | |
| LCH | lch(4.62 8.56 321.59) | color: lch(4.62 8.56 321.59) |
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)
#121215 — rgb(18, 18, 21)
Deuteranopia (Green-blind)
#131414 — rgb(19, 20, 20)
Tritanopia (Blue-blind)
#161312 — rgb(22, 19, 18)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(296, 34%, 7%);
text
color: hsl(296, 34%, 7%);
border
border: 2px solid hsl(296, 34%, 7%);
gradient light
background: linear-gradient(to right, hsl(296, 34%, 27%), hsl(296, 34%, 7%));
gradient dark
background: linear-gradient(to right, hsl(296, 34%, 7%), hsl(296, 34%, 0%))
hex
background-color: #170C18;
tailwind
bg-[hsl(296,34%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(296, 34%, 7%, 0.4);
css variable
--color-primary: hsl(296, 34%, 7%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(296, 34%, 7%)?
HEX: #170C18 | RGB: rgb(23, 12, 24) | CMYK: 4%, 50%, 0%, 91% | HSV: 295°, 50%, 9%. Copy any format from the conversion table above.
What colors go well with #170C18?
The complementary color is HSL(116, 34%, 7%). For a triadic harmony, use hues 296°, 56°, and 176°. For analogous combinations, try hues 266° and 326°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(296, 34%, 7%) in CSS?
As HSL: color: hsl(296, 34%, 7%); — As HEX: color: #170C18; — As RGB: color: rgb(23, 12, 24); — Tailwind CSS: bg-[hsl(296,34%,7%)] — CSS variable: --color-primary: hsl(296, 34%, 7%);