HSL(285, 50%, 25%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(285,50%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(285, 50%, 25%) | color: hsl(285, 50%, 25%) | |
| HEX | #502060 | color: #502060 | |
| RGB | rgb(80, 32, 96) | color: rgb(80, 32, 96) | |
| CMYK | cmyk(17%, 67%, 0%, 62%) | — | |
| HSV | hsv(285, 67%, 38%) | — | |
| HWB | hwb(285 13% 62%) | color: hwb(285 13% 62%) | |
| OKLCH | oklch(0.3441 0.1162 316.73) | color: oklch(0.3441 0.1162 316.73) | |
| Lab | lab(22.24 33.53 -28.45) | color: lab(22.24 33.53 -28.45) | |
| LCH | lch(22.24 43.97 319.69) | color: lch(22.24 43.97 319.69) |
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)
#3B3B51 — rgb(59, 59, 81)
Deuteranopia (Green-blind)
#3E424D — rgb(62, 66, 77)
Tritanopia (Blue-blind)
#4E4442 — rgb(78, 68, 66)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(285, 50%, 25%);
text
color: hsl(285, 50%, 25%);
border
border: 2px solid hsl(285, 50%, 25%);
gradient light
background: linear-gradient(to right, hsl(285, 50%, 45%), hsl(285, 50%, 25%));
gradient dark
background: linear-gradient(to right, hsl(285, 50%, 25%), hsl(285, 50%, 5%))
hex
background-color: #502060;
tailwind
bg-[hsl(285,50%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(285, 50%, 25%, 0.4);
css variable
--color-primary: hsl(285, 50%, 25%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(285, 50%, 25%)?
HEX: #502060 | RGB: rgb(80, 32, 96) | CMYK: 17%, 67%, 0%, 62% | HSV: 285°, 67%, 38%. Copy any format from the conversion table above.
What colors go well with #502060?
The complementary color is HSL(105, 50%, 25%). For a triadic harmony, use hues 285°, 45°, and 165°. For analogous combinations, try hues 255° and 315°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(285, 50%, 25%) in CSS?
As HSL: color: hsl(285, 50%, 25%); — As HEX: color: #502060; — As RGB: color: rgb(80, 32, 96); — Tailwind CSS: bg-[hsl(285,50%,25%)] — CSS variable: --color-primary: hsl(285, 50%, 25%);