HSL(10, 20%, 40%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(10,20%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(10, 20%, 40%) | color: hsl(10, 20%, 40%) | |
| HEX | #7A5852 | color: #7A5852 | |
| RGB | rgb(122, 88, 82) | color: rgb(122, 88, 82) | |
| CMYK | cmyk(0%, 28%, 33%, 52%) | — | |
| HSV | hsv(9, 33%, 48%) | — | |
| HWB | hwb(9 32% 52%) | color: hwb(9 32% 52%) | |
| OKLCH | oklch(0.4944 0.0464 30.1) | color: oklch(0.4944 0.0464 30.1) | |
| Lab | lab(40.78 13.14 9.01) | color: lab(40.78 13.14 9.01) | |
| LCH | lch(40.78 15.93 34.44) | color: lch(40.78 15.93 34.44) |
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)
#6B6B53 — rgb(107, 107, 83)
Deuteranopia (Green-blind)
#6D7054 — rgb(109, 112, 84)
Tritanopia (Blue-blind)
#785555 — rgb(120, 85, 85)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(10, 20%, 40%);
text
color: hsl(10, 20%, 40%);
border
border: 2px solid hsl(10, 20%, 40%);
gradient light
background: linear-gradient(to right, hsl(10, 20%, 60%), hsl(10, 20%, 40%));
gradient dark
background: linear-gradient(to right, hsl(10, 20%, 40%), hsl(10, 20%, 20%))
hex
background-color: #7A5852;
tailwind
bg-[hsl(10,20%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(10, 20%, 40%, 0.4);
css variable
--color-primary: hsl(10, 20%, 40%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(10, 20%, 40%)?
HEX: #7A5852 | RGB: rgb(122, 88, 82) | CMYK: 0%, 28%, 33%, 52% | HSV: 9°, 33%, 48%. Copy any format from the conversion table above.
What colors go well with #7A5852?
The complementary color is HSL(190, 20%, 40%). For a triadic harmony, use hues 10°, 130°, and 250°. For analogous combinations, try hues 340° and 40°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(10, 20%, 40%) in CSS?
As HSL: color: hsl(10, 20%, 40%); — As HEX: color: #7A5852; — As RGB: color: rgb(122, 88, 82); — Tailwind CSS: bg-[hsl(10,20%,40%)] — CSS variable: --color-primary: hsl(10, 20%, 40%);