HSL(2, 23%, 40%)

Red — Red color

Adjust Color

Color Information

Color Name

Red

Color Family

Red

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(2,23%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(2, 23%, 40%) color: hsl(2, 23%, 40%)
HEX #7D504F color: #7D504F
RGB rgb(125, 80, 79) color: rgb(125, 80, 79)
CMYK cmyk(0%, 36%, 37%, 51%)
HSV hsv(1, 37%, 49%)
HWB hwb(1 31% 51%) color: hwb(1 31% 51%)
OKLCH oklch(0.4814 0.061 20.96) color: oklch(0.4814 0.061 20.96)
Lab lab(39.01 18.77 8.42) color: lab(39.01 18.77 8.42)
LCH lch(39.01 20.57 24.16) color: lch(39.01 20.57 24.16)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 6.7:1
vs Black 3.13:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#6A694F — rgb(106, 105, 79)

Deuteranopia (Green-blind)

#6C704F — rgb(108, 112, 79)

Tritanopia (Blue-blind)

#7B4F4F — rgb(123, 79, 79)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(2, 23%, 40%);

text

color: hsl(2, 23%, 40%);

border

border: 2px solid hsl(2, 23%, 40%);

gradient light

background: linear-gradient(to right, hsl(2, 23%, 60%), hsl(2, 23%, 40%));

gradient dark

background: linear-gradient(to right, hsl(2, 23%, 40%), hsl(2, 23%, 20%))

hex

background-color: #7D504F;

tailwind

bg-[hsl(2,23%,40%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(2, 23%, 40%, 0.4);

css variable

--color-primary: hsl(2, 23%, 40%);

Related Colors

Use Cases for Red

Alerts & errors Call-to-action buttons Brand logos Sale badges Warning messages

Frequently Asked Questions

What are all the color codes for HSL(2, 23%, 40%)?

HEX: #7D504F | RGB: rgb(125, 80, 79) | CMYK: 0%, 36%, 37%, 51% | HSV: 1°, 37%, 49%. Copy any format from the conversion table above.

What colors go well with #7D504F?

The complementary color is HSL(182, 23%, 40%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(2, 23%, 40%) in CSS?

As HSL: color: hsl(2, 23%, 40%); — As HEX: color: #7D504F; — As RGB: color: rgb(125, 80, 79); — Tailwind CSS: bg-[hsl(2,23%,40%)] — CSS variable: --color-primary: hsl(2, 23%, 40%);