HSL(287, 51%, 34%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(287,51%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(287, 51%, 34%) | color: hsl(287, 51%, 34%) | |
| HEX | #702A83 | color: #702A83 | |
| RGB | rgb(112, 42, 131) | color: rgb(112, 42, 131) | |
| CMYK | cmyk(15%, 68%, 0%, 49%) | — | |
| HSV | hsv(287, 68%, 51%) | — | |
| HWB | hwb(287 16% 49%) | color: hwb(287 16% 49%) | |
| OKLCH | oklch(0.4263 0.1527 318.35) | color: oklch(0.4263 0.1527 318.35) | |
| Lab | lab(31.21 44.58 -36.25) | color: lab(31.21 44.58 -36.25) | |
| LCH | lch(31.21 57.46 320.88) | color: lch(31.21 57.46 320.88) |
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)
#52516D — rgb(82, 81, 109)
Deuteranopia (Green-blind)
#565B68 — rgb(86, 91, 104)
Tritanopia (Blue-blind)
#6D5C59 — rgb(109, 92, 89)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(287, 51%, 34%);
text
color: hsl(287, 51%, 34%);
border
border: 2px solid hsl(287, 51%, 34%);
gradient light
background: linear-gradient(to right, hsl(287, 51%, 54%), hsl(287, 51%, 34%));
gradient dark
background: linear-gradient(to right, hsl(287, 51%, 34%), hsl(287, 51%, 14%))
hex
background-color: #702A83;
tailwind
bg-[hsl(287,51%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(287, 51%, 34%, 0.4);
css variable
--color-primary: hsl(287, 51%, 34%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(287, 51%, 34%)?
HEX: #702A83 | RGB: rgb(112, 42, 131) | CMYK: 15%, 68%, 0%, 49% | HSV: 287°, 68%, 51%. Copy any format from the conversion table above.
What colors go well with #702A83?
The complementary color is HSL(107, 51%, 34%). 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, 51%, 34%) in CSS?
As HSL: color: hsl(287, 51%, 34%); — As HEX: color: #702A83; — As RGB: color: rgb(112, 42, 131); — Tailwind CSS: bg-[hsl(287,51%,34%)] — CSS variable: --color-primary: hsl(287, 51%, 34%);