HSL(290, 65%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(290,65%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(290, 65%, 18%) | color: hsl(290, 65%, 18%) | |
| HEX | #42104C | color: #42104C | |
| RGB | rgb(66, 16, 76) | color: rgb(66, 16, 76) | |
| CMYK | cmyk(13%, 79%, 0%, 70%) | — | |
| HSV | hsv(290, 79%, 30%) | — | |
| HWB | hwb(290 6% 70%) | color: hwb(290 6% 70%) | |
| OKLCH | oklch(0.2883 0.1121 320.41) | color: oklch(0.2883 0.1121 320.41) | |
| Lab | lab(15.75 33.15 -25.51) | color: lab(15.75 33.15 -25.51) | |
| LCH | lch(15.75 41.83 322.42) | color: lch(15.75 41.83 322.42) |
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)
#2C2C3D — rgb(44, 44, 61)
Deuteranopia (Green-blind)
#2F333A — rgb(47, 51, 58)
Tritanopia (Blue-blind)
#403230 — rgb(64, 50, 48)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(290, 65%, 18%);
text
color: hsl(290, 65%, 18%);
border
border: 2px solid hsl(290, 65%, 18%);
gradient light
background: linear-gradient(to right, hsl(290, 65%, 38%), hsl(290, 65%, 18%));
gradient dark
background: linear-gradient(to right, hsl(290, 65%, 18%), hsl(290, 65%, 0%))
hex
background-color: #42104C;
tailwind
bg-[hsl(290,65%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(290, 65%, 18%, 0.4);
css variable
--color-primary: hsl(290, 65%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(290, 65%, 18%)?
HEX: #42104C | RGB: rgb(66, 16, 76) | CMYK: 13%, 79%, 0%, 70% | HSV: 290°, 79%, 30%. Copy any format from the conversion table above.
What colors go well with #42104C?
The complementary color is HSL(110, 65%, 18%). For a triadic harmony, use hues 290°, 50°, and 170°. For analogous combinations, try hues 260° and 320°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(290, 65%, 18%) in CSS?
As HSL: color: hsl(290, 65%, 18%); — As HEX: color: #42104C; — As RGB: color: rgb(66, 16, 76); — Tailwind CSS: bg-[hsl(290,65%,18%)] — CSS variable: --color-primary: hsl(290, 65%, 18%);