HSL(297, 20%, 25%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,20%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 20%, 25%) | color: hsl(297, 20%, 25%) | |
| HEX | #4B334D | color: #4B334D | |
| RGB | rgb(75, 51, 77) | color: rgb(75, 51, 77) | |
| CMYK | cmyk(3%, 34%, 0%, 70%) | — | |
| HSV | hsv(295, 34%, 30%) | — | |
| HWB | hwb(295 20% 70%) | color: hwb(295 20% 70%) | |
| OKLCH | oklch(0.3594 0.054 324) | color: oklch(0.3594 0.054 324) | |
| Lab | lab(24.95 16 -11.68) | color: lab(24.95 16 -11.68) | |
| LCH | lch(24.95 19.81 323.87) | color: lch(24.95 19.81 323.87) |
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)
#414047 — rgb(65, 64, 71)
Deuteranopia (Green-blind)
#424445 — rgb(66, 68, 69)
Tritanopia (Blue-blind)
#4A4241 — rgb(74, 66, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 20%, 25%);
text
color: hsl(297, 20%, 25%);
border
border: 2px solid hsl(297, 20%, 25%);
gradient light
background: linear-gradient(to right, hsl(297, 20%, 45%), hsl(297, 20%, 25%));
gradient dark
background: linear-gradient(to right, hsl(297, 20%, 25%), hsl(297, 20%, 5%))
hex
background-color: #4B334D;
tailwind
bg-[hsl(297,20%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 20%, 25%, 0.4);
css variable
--color-primary: hsl(297, 20%, 25%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 20%, 25%)?
HEX: #4B334D | RGB: rgb(75, 51, 77) | CMYK: 3%, 34%, 0%, 70% | HSV: 295°, 34%, 30%. Copy any format from the conversion table above.
What colors go well with #4B334D?
The complementary color is HSL(117, 20%, 25%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(297, 20%, 25%) in CSS?
As HSL: color: hsl(297, 20%, 25%); — As HEX: color: #4B334D; — As RGB: color: rgb(75, 51, 77); — Tailwind CSS: bg-[hsl(297,20%,25%)] — CSS variable: --color-primary: hsl(297, 20%, 25%);