HSL(291, 98%, 16%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(291,98%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(291, 98%, 16%) | color: hsl(291, 98%, 16%) | |
| HEX | #450151 | color: #450151 | |
| RGB | rgb(69, 1, 81) | color: rgb(69, 1, 81) | |
| CMYK | cmyk(15%, 99%, 0%, 68%) | — | |
| HSV | hsv(291, 99%, 32%) | — | |
| HWB | hwb(291 0% 68%) | color: hwb(291 0% 68%) | |
| OKLCH | oklch(0.2842 0.1345 320.57) | color: oklch(0.2842 0.1345 320.57) | |
| Lab | lab(14.85 40.21 -30.36) | color: lab(14.85 40.21 -30.36) | |
| LCH | lch(14.85 50.38 322.95) | color: lch(14.85 50.38 322.95) |
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)
#28273E — rgb(40, 39, 62)
Deuteranopia (Green-blind)
#2C3139 — rgb(44, 49, 57)
Tritanopia (Blue-blind)
#422E2B — rgb(66, 46, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(291, 98%, 16%);
text
color: hsl(291, 98%, 16%);
border
border: 2px solid hsl(291, 98%, 16%);
gradient light
background: linear-gradient(to right, hsl(291, 98%, 36%), hsl(291, 98%, 16%));
gradient dark
background: linear-gradient(to right, hsl(291, 98%, 16%), hsl(291, 98%, 0%))
hex
background-color: #450151;
tailwind
bg-[hsl(291,98%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(291, 98%, 16%, 0.4);
css variable
--color-primary: hsl(291, 98%, 16%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(291, 98%, 16%)?
HEX: #450151 | RGB: rgb(69, 1, 81) | CMYK: 15%, 99%, 0%, 68% | HSV: 291°, 99%, 32%. Copy any format from the conversion table above.
What colors go well with #450151?
The complementary color is HSL(111, 98%, 16%). For a triadic harmony, use hues 291°, 51°, and 171°. For analogous combinations, try hues 261° and 321°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(291, 98%, 16%) in CSS?
As HSL: color: hsl(291, 98%, 16%); — As HEX: color: #450151; — As RGB: color: rgb(69, 1, 81); — Tailwind CSS: bg-[hsl(291,98%,16%)] — CSS variable: --color-primary: hsl(291, 98%, 16%);