HSL(307, 74%, 26%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(307,74%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(307, 74%, 26%) | color: hsl(307, 74%, 26%) | |
| HEX | #731168 | color: #731168 | |
| RGB | rgb(115, 17, 104) | color: rgb(115, 17, 104) | |
| CMYK | cmyk(0%, 85%, 10%, 55%) | — | |
| HSV | hsv(307, 85%, 45%) | — | |
| HWB | hwb(307 7% 55%) | color: hwb(307 7% 55%) | |
| OKLCH | oklch(0.3909 0.1601 333.55) | color: oklch(0.3909 0.1601 333.55) | |
| Lab | lab(26.87 49.45 -25.95) | color: lab(26.87 49.45 -25.95) | |
| LCH | lch(26.87 55.85 332.31) | color: lch(26.87 55.85 332.31) |
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)
#494853 — rgb(73, 72, 83)
Deuteranopia (Green-blind)
#4E564E — rgb(78, 86, 78)
Tritanopia (Blue-blind)
#6E423F — rgb(110, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(307, 74%, 26%);
text
color: hsl(307, 74%, 26%);
border
border: 2px solid hsl(307, 74%, 26%);
gradient light
background: linear-gradient(to right, hsl(307, 74%, 46%), hsl(307, 74%, 26%));
gradient dark
background: linear-gradient(to right, hsl(307, 74%, 26%), hsl(307, 74%, 6%))
hex
background-color: #731168;
tailwind
bg-[hsl(307,74%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(307, 74%, 26%, 0.4);
css variable
--color-primary: hsl(307, 74%, 26%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(307, 74%, 26%)?
HEX: #731168 | RGB: rgb(115, 17, 104) | CMYK: 0%, 85%, 10%, 55% | HSV: 307°, 85%, 45%. Copy any format from the conversion table above.
What colors go well with #731168?
The complementary color is HSL(127, 74%, 26%). For a triadic harmony, use hues 307°, 67°, and 187°. For analogous combinations, try hues 277° and 337°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(307, 74%, 26%) in CSS?
As HSL: color: hsl(307, 74%, 26%); — As HEX: color: #731168; — As RGB: color: rgb(115, 17, 104); — Tailwind CSS: bg-[hsl(307,74%,26%)] — CSS variable: --color-primary: hsl(307, 74%, 26%);