HSL(287, 79%, 51%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,79%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 79%, 51%) | color: hsl(287, 79%, 51%) | |
| HEX | #BA1FE5 | color: #BA1FE5 | |
| RGB | rgb(186, 31, 229) | color: rgb(186, 31, 229) | |
| CMYK | cmyk(19%, 86%, 0%, 10%) | — | |
| HSV | hsv(287, 86%, 90%) | — | |
| HWB | hwb(287 13% 10%) | color: hwb(287 13% 10%) | |
| OKLCH | oklch(0.5915 0.2728 316.82) | color: oklch(0.5915 0.2728 316.82) | |
| Lab | lab(48.36 80.57 -66.12) | color: lab(48.36 80.57 -66.12) | |
| LCH | lch(48.36 104.23 320.63) | color: lch(48.36 104.23 320.63) |
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)
#7775B5 — rgb(119, 117, 181)
Deuteranopia (Green-blind)
#808CAA — rgb(128, 140, 170)
Tritanopia (Blue-blind)
#B28F87 — rgb(178, 143, 135)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 79%, 51%);
text
color: hsl(287, 79%, 51%);
border
border: 2px solid hsl(287, 79%, 51%);
gradient light
background: linear-gradient(to right, hsl(287, 79%, 71%), hsl(287, 79%, 51%));
gradient dark
background: linear-gradient(to right, hsl(287, 79%, 51%), hsl(287, 79%, 31%))
hex
background-color: #BA1FE5;
tailwind
bg-[hsl(287,79%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 79%, 51%, 0.4);
css variable
--color-primary: hsl(287, 79%, 51%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 79%, 51%)?
HEX: #BA1FE5 | RGB: rgb(186, 31, 229) | CMYK: 19%, 86%, 0%, 10% | HSV: 287°, 86%, 90%. Copy any format from the conversion table above.
What colors go well with #BA1FE5?
The complementary color is HSL(107, 79%, 51%). For a triadic harmony, use hues 287°, 47°, and 167°. For analogous combinations, try hues 257° and 317°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(287, 79%, 51%) in CSS?
As HSL: color: hsl(287, 79%, 51%); — As HEX: color: #BA1FE5; — As RGB: color: rgb(186, 31, 229); — Tailwind CSS: bg-[hsl(287,79%,51%)] — CSS variable: --color-primary: hsl(287, 79%, 51%);