HSL(287, 55%, 24%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,55%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 55%, 24%) | color: hsl(287, 55%, 24%) | |
| HEX | #501C5F | color: #501C5F | |
| RGB | rgb(80, 28, 95) | color: rgb(80, 28, 95) | |
| CMYK | cmyk(16%, 71%, 0%, 63%) | — | |
| HSV | hsv(287, 71%, 37%) | — | |
| HWB | hwb(287 11% 63%) | color: hwb(287 11% 63%) | |
| OKLCH | oklch(0.3381 0.1213 317.84) | color: oklch(0.3381 0.1213 317.84) | |
| Lab | lab(21.44 35.34 -29.07) | color: lab(21.44 35.34 -29.07) | |
| LCH | lch(21.44 45.76 320.56) | color: lch(21.44 45.76 320.56) |
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)
#39394F — rgb(57, 57, 79)
Deuteranopia (Green-blind)
#3D404B — rgb(61, 64, 75)
Tritanopia (Blue-blind)
#4D423F — rgb(77, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 55%, 24%);
text
color: hsl(287, 55%, 24%);
border
border: 2px solid hsl(287, 55%, 24%);
gradient light
background: linear-gradient(to right, hsl(287, 55%, 44%), hsl(287, 55%, 24%));
gradient dark
background: linear-gradient(to right, hsl(287, 55%, 24%), hsl(287, 55%, 4%))
hex
background-color: #501C5F;
tailwind
bg-[hsl(287,55%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 55%, 24%, 0.4);
css variable
--color-primary: hsl(287, 55%, 24%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 55%, 24%)?
HEX: #501C5F | RGB: rgb(80, 28, 95) | CMYK: 16%, 71%, 0%, 63% | HSV: 287°, 71%, 37%. Copy any format from the conversion table above.
What colors go well with #501C5F?
The complementary color is HSL(107, 55%, 24%). 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, 55%, 24%) in CSS?
As HSL: color: hsl(287, 55%, 24%); — As HEX: color: #501C5F; — As RGB: color: rgb(80, 28, 95); — Tailwind CSS: bg-[hsl(287,55%,24%)] — CSS variable: --color-primary: hsl(287, 55%, 24%);