HSL(285, 40%, 42%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(285,40%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(285, 40%, 42%) | color: hsl(285, 40%, 42%) | |
| HEX | #814096 | color: #814096 | |
| RGB | rgb(129, 64, 150) | color: rgb(129, 64, 150) | |
| CMYK | cmyk(14%, 57%, 0%, 41%) | — | |
| HSV | hsv(285, 57%, 59%) | — | |
| HWB | hwb(285 25% 41%) | color: hwb(285 25% 41%) | |
| OKLCH | oklch(0.4901 0.1466 317.24) | color: oklch(0.4901 0.1466 317.24) | |
| Lab | lab(38.79 42.15 -35.71) | color: lab(38.79 42.15 -35.71) | |
| LCH | lch(38.79 55.24 319.73) | color: lch(38.79 55.24 319.73) |
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)
#656481 — rgb(101, 100, 129)
Deuteranopia (Green-blind)
#696E7C — rgb(105, 110, 124)
Tritanopia (Blue-blind)
#7E716D — rgb(126, 113, 109)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(285, 40%, 42%);
text
color: hsl(285, 40%, 42%);
border
border: 2px solid hsl(285, 40%, 42%);
gradient light
background: linear-gradient(to right, hsl(285, 40%, 62%), hsl(285, 40%, 42%));
gradient dark
background: linear-gradient(to right, hsl(285, 40%, 42%), hsl(285, 40%, 22%))
hex
background-color: #814096;
tailwind
bg-[hsl(285,40%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(285, 40%, 42%, 0.4);
css variable
--color-primary: hsl(285, 40%, 42%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(285, 40%, 42%)?
HEX: #814096 | RGB: rgb(129, 64, 150) | CMYK: 14%, 57%, 0%, 41% | HSV: 285°, 57%, 59%. Copy any format from the conversion table above.
What colors go well with #814096?
The complementary color is HSL(105, 40%, 42%). 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, 40%, 42%) in CSS?
As HSL: color: hsl(285, 40%, 42%); — As HEX: color: #814096; — As RGB: color: rgb(129, 64, 150); — Tailwind CSS: bg-[hsl(285,40%,42%)] — CSS variable: --color-primary: hsl(285, 40%, 42%);