HSL(302, 88%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(302,88%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(302, 88%, 18%) | color: hsl(302, 88%, 18%) | |
| HEX | #560654 | color: #560654 | |
| RGB | rgb(86, 6, 84) | color: rgb(86, 6, 84) | |
| CMYK | cmyk(0%, 93%, 2%, 66%) | — | |
| HSV | hsv(302, 93%, 34%) | — | |
| HWB | hwb(302 2% 66%) | color: hwb(302 2% 66%) | |
| OKLCH | oklch(0.3205 0.1393 329.45) | color: oklch(0.3205 0.1393 329.45) | |
| Lab | lab(19.01 42.52 -25.54) | color: lab(19.01 42.52 -25.54) | |
| LCH | lch(19.01 49.6 329.01) | color: lch(19.01 49.6 329.01) |
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)
#333341 — rgb(51, 51, 65)
Deuteranopia (Green-blind)
#383E3D — rgb(56, 62, 61)
Tritanopia (Blue-blind)
#52322F — rgb(82, 50, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(302, 88%, 18%);
text
color: hsl(302, 88%, 18%);
border
border: 2px solid hsl(302, 88%, 18%);
gradient light
background: linear-gradient(to right, hsl(302, 88%, 38%), hsl(302, 88%, 18%));
gradient dark
background: linear-gradient(to right, hsl(302, 88%, 18%), hsl(302, 88%, 0%))
hex
background-color: #560654;
tailwind
bg-[hsl(302,88%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(302, 88%, 18%, 0.4);
css variable
--color-primary: hsl(302, 88%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(302, 88%, 18%)?
HEX: #560654 | RGB: rgb(86, 6, 84) | CMYK: 0%, 93%, 2%, 66% | HSV: 302°, 93%, 34%. Copy any format from the conversion table above.
What colors go well with #560654?
The complementary color is HSL(122, 88%, 18%). For a triadic harmony, use hues 302°, 62°, and 182°. For analogous combinations, try hues 272° and 332°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(302, 88%, 18%) in CSS?
As HSL: color: hsl(302, 88%, 18%); — As HEX: color: #560654; — As RGB: color: rgb(86, 6, 84); — Tailwind CSS: bg-[hsl(302,88%,18%)] — CSS variable: --color-primary: hsl(302, 88%, 18%);