HSL(301, 85%, 5%)
Very Dark Purple — Purple color
Adjust Color
Color Information
Color Name
Very Dark Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(301,85%,5%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(301, 85%, 5%) | color: hsl(301, 85%, 5%) | |
| HEX | #180217 | color: #180217 | |
| RGB | rgb(24, 2, 23) | color: rgb(24, 2, 23) | |
| CMYK | cmyk(0%, 92%, 4%, 91%) | — | |
| HSV | hsv(303, 92%, 9%) | — | |
| HWB | hwb(303 1% 91%) | color: hwb(303 1% 91%) | |
| OKLCH | oklch(0.1519 0.0584 329.69) | color: oklch(0.1519 0.0584 329.69) | |
| Lab | lab(2.71 10.99 -7.34) | color: lab(2.71 10.99 -7.34) | |
| LCH | lch(2.71 13.22 326.26) | color: lch(2.71 13.22 326.26) |
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)
#0E0E12 — rgb(14, 14, 18)
Deuteranopia (Green-blind)
#101111 — rgb(16, 17, 17)
Tritanopia (Blue-blind)
#170E0D — rgb(23, 14, 13)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(301, 85%, 5%);
text
color: hsl(301, 85%, 5%);
border
border: 2px solid hsl(301, 85%, 5%);
gradient light
background: linear-gradient(to right, hsl(301, 85%, 25%), hsl(301, 85%, 5%));
gradient dark
background: linear-gradient(to right, hsl(301, 85%, 5%), hsl(301, 85%, 0%))
hex
background-color: #180217;
tailwind
bg-[hsl(301,85%,5%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(301, 85%, 5%, 0.4);
css variable
--color-primary: hsl(301, 85%, 5%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(301, 85%, 5%)?
HEX: #180217 | RGB: rgb(24, 2, 23) | CMYK: 0%, 92%, 4%, 91% | HSV: 303°, 92%, 9%. Copy any format from the conversion table above.
What colors go well with #180217?
The complementary color is HSL(121, 85%, 5%). 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, 85%, 5%) in CSS?
As HSL: color: hsl(301, 85%, 5%); — As HEX: color: #180217; — As RGB: color: rgb(24, 2, 23); — Tailwind CSS: bg-[hsl(301,85%,5%)] — CSS variable: --color-primary: hsl(301, 85%, 5%);