HSL(297, 20%, 23%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(297,20%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 20%, 23%) | color: hsl(297, 20%, 23%) | |
| HEX | #452F46 | color: #452F46 | |
| RGB | rgb(69, 47, 70) | color: rgb(69, 47, 70) | |
| CMYK | cmyk(1%, 33%, 0%, 73%) | — | |
| HSV | hsv(297, 33%, 27%) | — | |
| HWB | hwb(297 18% 73%) | color: hwb(297 18% 73%) | |
| OKLCH | oklch(0.3402 0.0491 325.13) | color: oklch(0.3402 0.0491 325.13) | |
| Lab | lab(22.79 14.68 -10.36) | color: lab(22.79 14.68 -10.36) | |
| LCH | lch(22.79 17.97 324.79) | color: lch(22.79 17.97 324.79) |
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)
#3B3B40 — rgb(59, 59, 64)
Deuteranopia (Green-blind)
#3D3E3F — rgb(61, 62, 63)
Tritanopia (Blue-blind)
#443C3B — rgb(68, 60, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 20%, 23%);
text
color: hsl(297, 20%, 23%);
border
border: 2px solid hsl(297, 20%, 23%);
gradient light
background: linear-gradient(to right, hsl(297, 20%, 43%), hsl(297, 20%, 23%));
gradient dark
background: linear-gradient(to right, hsl(297, 20%, 23%), hsl(297, 20%, 3%))
hex
background-color: #452F46;
tailwind
bg-[hsl(297,20%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 20%, 23%, 0.4);
css variable
--color-primary: hsl(297, 20%, 23%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 20%, 23%)?
HEX: #452F46 | RGB: rgb(69, 47, 70) | CMYK: 1%, 33%, 0%, 73% | HSV: 297°, 33%, 27%. Copy any format from the conversion table above.
What colors go well with #452F46?
The complementary color is HSL(117, 20%, 23%). 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%, 23%) in CSS?
As HSL: color: hsl(297, 20%, 23%); — As HEX: color: #452F46; — As RGB: color: rgb(69, 47, 70); — Tailwind CSS: bg-[hsl(297,20%,23%)] — CSS variable: --color-primary: hsl(297, 20%, 23%);