HSL(285, 80%, 28%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(285,80%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(285, 80%, 28%) | color: hsl(285, 80%, 28%) | |
| HEX | #640E81 | color: #640E81 | |
| RGB | rgb(100, 14, 129) | color: rgb(100, 14, 129) | |
| CMYK | cmyk(22%, 89%, 0%, 49%) | — | |
| HSV | hsv(285, 89%, 51%) | — | |
| HWB | hwb(285 6% 49%) | color: hwb(285 6% 49%) | |
| OKLCH | oklch(0.3821 0.1763 314.9) | color: oklch(0.3821 0.1763 314.9) | |
| Lab | lab(25.59 51.75 -44.14) | color: lab(25.59 51.75 -44.14) | |
| LCH | lch(25.59 68.02 319.54) | color: lch(25.59 68.02 319.54) |
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)
#3F3E65 — rgb(63, 62, 101)
Deuteranopia (Green-blind)
#444A5F — rgb(68, 74, 95)
Tritanopia (Blue-blind)
#604F4A — rgb(96, 79, 74)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(285, 80%, 28%);
text
color: hsl(285, 80%, 28%);
border
border: 2px solid hsl(285, 80%, 28%);
gradient light
background: linear-gradient(to right, hsl(285, 80%, 48%), hsl(285, 80%, 28%));
gradient dark
background: linear-gradient(to right, hsl(285, 80%, 28%), hsl(285, 80%, 8%))
hex
background-color: #640E81;
tailwind
bg-[hsl(285,80%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(285, 80%, 28%, 0.4);
css variable
--color-primary: hsl(285, 80%, 28%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(285, 80%, 28%)?
HEX: #640E81 | RGB: rgb(100, 14, 129) | CMYK: 22%, 89%, 0%, 49% | HSV: 285°, 89%, 51%. Copy any format from the conversion table above.
What colors go well with #640E81?
The complementary color is HSL(105, 80%, 28%). 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, 80%, 28%) in CSS?
As HSL: color: hsl(285, 80%, 28%); — As HEX: color: #640E81; — As RGB: color: rgb(100, 14, 129); — Tailwind CSS: bg-[hsl(285,80%,28%)] — CSS variable: --color-primary: hsl(285, 80%, 28%);