HSL(304, 40%, 35%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(304,40%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(304, 40%, 35%) | color: hsl(304, 40%, 35%) | |
| HEX | #7D3678 | color: #7D3678 | |
| RGB | rgb(125, 54, 120) | color: rgb(125, 54, 120) | |
| CMYK | cmyk(0%, 57%, 4%, 51%) | — | |
| HSV | hsv(304, 57%, 49%) | — | |
| HWB | hwb(304 21% 51%) | color: hwb(304 21% 51%) | |
| OKLCH | oklch(0.4539 0.1308 330.24) | color: oklch(0.4539 0.1308 330.24) | |
| Lab | lab(34.71 40.13 -23.71) | color: lab(34.71 40.13 -23.71) | |
| LCH | lch(34.71 46.61 329.42) | color: lch(34.71 46.61 329.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)
#5E5E68 — rgb(94, 94, 104)
Deuteranopia (Green-blind)
#626864 — rgb(98, 104, 100)
Tritanopia (Blue-blind)
#795B59 — rgb(121, 91, 89)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(304, 40%, 35%);
text
color: hsl(304, 40%, 35%);
border
border: 2px solid hsl(304, 40%, 35%);
gradient light
background: linear-gradient(to right, hsl(304, 40%, 55%), hsl(304, 40%, 35%));
gradient dark
background: linear-gradient(to right, hsl(304, 40%, 35%), hsl(304, 40%, 15%))
hex
background-color: #7D3678;
tailwind
bg-[hsl(304,40%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(304, 40%, 35%, 0.4);
css variable
--color-primary: hsl(304, 40%, 35%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(304, 40%, 35%)?
HEX: #7D3678 | RGB: rgb(125, 54, 120) | CMYK: 0%, 57%, 4%, 51% | HSV: 304°, 57%, 49%. Copy any format from the conversion table above.
What colors go well with #7D3678?
The complementary color is HSL(124, 40%, 35%). For a triadic harmony, use hues 304°, 64°, and 184°. For analogous combinations, try hues 274° and 334°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(304, 40%, 35%) in CSS?
As HSL: color: hsl(304, 40%, 35%); — As HEX: color: #7D3678; — As RGB: color: rgb(125, 54, 120); — Tailwind CSS: bg-[hsl(304,40%,35%)] — CSS variable: --color-primary: hsl(304, 40%, 35%);