HSL(311, 34%, 23%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(311,34%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(311, 34%, 23%) | color: hsl(311, 34%, 23%) | |
| HEX | #4F2747 | color: #4F2747 | |
| RGB | rgb(79, 39, 71) | color: rgb(79, 39, 71) | |
| CMYK | cmyk(0%, 51%, 10%, 69%) | — | |
| HSV | hsv(312, 51%, 31%) | — | |
| HWB | hwb(312 15% 69%) | color: hwb(312 15% 69%) | |
| OKLCH | oklch(0.3389 0.0758 335.06) | color: oklch(0.3389 0.0758 335.06) | |
| Lab | lab(22.19 23.82 -11.84) | color: lab(22.19 23.82 -11.84) | |
| LCH | lch(22.19 26.6 333.57) | color: lch(22.19 26.6 333.57) |
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)
#3E3D3F — rgb(62, 61, 63)
Deuteranopia (Green-blind)
#40433D — rgb(64, 67, 61)
Tritanopia (Blue-blind)
#4D3938 — rgb(77, 57, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(311, 34%, 23%);
text
color: hsl(311, 34%, 23%);
border
border: 2px solid hsl(311, 34%, 23%);
gradient light
background: linear-gradient(to right, hsl(311, 34%, 43%), hsl(311, 34%, 23%));
gradient dark
background: linear-gradient(to right, hsl(311, 34%, 23%), hsl(311, 34%, 3%))
hex
background-color: #4F2747;
tailwind
bg-[hsl(311,34%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(311, 34%, 23%, 0.4);
css variable
--color-primary: hsl(311, 34%, 23%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(311, 34%, 23%)?
HEX: #4F2747 | RGB: rgb(79, 39, 71) | CMYK: 0%, 51%, 10%, 69% | HSV: 312°, 51%, 31%. Copy any format from the conversion table above.
What colors go well with #4F2747?
The complementary color is HSL(131, 34%, 23%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(311, 34%, 23%) in CSS?
As HSL: color: hsl(311, 34%, 23%); — As HEX: color: #4F2747; — As RGB: color: rgb(79, 39, 71); — Tailwind CSS: bg-[hsl(311,34%,23%)] — CSS variable: --color-primary: hsl(311, 34%, 23%);