HSL(287, 97%, 9%)
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(287,97%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 97%, 9%) | color: hsl(287, 97%, 9%) | |
| HEX | #24012D | color: #24012D | |
| RGB | rgb(36, 1, 45) | color: rgb(36, 1, 45) | |
| CMYK | cmyk(20%, 98%, 0%, 82%) | — | |
| HSV | hsv(288, 98%, 18%) | — | |
| HWB | hwb(288 0% 82%) | color: hwb(288 0% 82%) | |
| OKLCH | oklch(0.1924 0.0897 318.66) | color: oklch(0.1924 0.0897 318.66) | |
| Lab | lab(5.3 25.02 -20.36) | color: lab(5.3 25.02 -20.36) | |
| LCH | lch(5.3 32.26 320.86) | color: lch(5.3 32.26 320.86) |
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)
#151522 — rgb(21, 21, 34)
Deuteranopia (Green-blind)
#171A20 — rgb(23, 26, 32)
Tritanopia (Blue-blind)
#221A18 — rgb(34, 26, 24)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 97%, 9%);
text
color: hsl(287, 97%, 9%);
border
border: 2px solid hsl(287, 97%, 9%);
gradient light
background: linear-gradient(to right, hsl(287, 97%, 29%), hsl(287, 97%, 9%));
gradient dark
background: linear-gradient(to right, hsl(287, 97%, 9%), hsl(287, 97%, 0%))
hex
background-color: #24012D;
tailwind
bg-[hsl(287,97%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 97%, 9%, 0.4);
css variable
--color-primary: hsl(287, 97%, 9%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 97%, 9%)?
HEX: #24012D | RGB: rgb(36, 1, 45) | CMYK: 20%, 98%, 0%, 82% | HSV: 288°, 98%, 18%. Copy any format from the conversion table above.
What colors go well with #24012D?
The complementary color is HSL(107, 97%, 9%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 97%, 9%) in CSS?
As HSL: color: hsl(287, 97%, 9%); — As HEX: color: #24012D; — As RGB: color: rgb(36, 1, 45); — Tailwind CSS: bg-[hsl(287,97%,9%)] — CSS variable: --color-primary: hsl(287, 97%, 9%);