HSL(45, 80%, 23%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(45,80%,23%)]

Color Conversions

Format Value CSS Usage
HSL hsl(45, 80%, 23%) color: hsl(45, 80%, 23%)
HEX #6A520C color: #6A520C
RGB rgb(106, 82, 12) color: rgb(106, 82, 12)
CMYK cmyk(0%, 23%, 89%, 58%)
HSV hsv(45, 89%, 42%)
HWB hwb(45 5% 58%) color: hwb(45 5% 58%)
OKLCH oklch(0.4514 0.0871 87.67) color: oklch(0.4514 0.0871 87.67)
Lab lab(36.23 3.02 40.72) color: lab(36.23 3.02 40.72)
LCH lch(36.23 40.83 85.76) color: lch(36.23 40.83 85.76)

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 7.43:1
vs Black 2.83:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#605F1D — rgb(96, 95, 29)

Deuteranopia (Green-blind)

#616321 — rgb(97, 99, 33)

Tritanopia (Blue-blind)

#692A2D — rgb(105, 42, 45)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(45, 80%, 23%);

text

color: hsl(45, 80%, 23%);

border

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

gradient light

background: linear-gradient(to right, hsl(45, 80%, 43%), hsl(45, 80%, 23%));

gradient dark

background: linear-gradient(to right, hsl(45, 80%, 23%), hsl(45, 80%, 3%))

hex

background-color: #6A520C;

tailwind

bg-[hsl(45,80%,23%)]

box shadow

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

css variable

--color-primary: hsl(45, 80%, 23%);

Related Colors

Use Cases for Yellow

Warnings Highlights Attention indicators Optimistic brands Note/sticky elements

Frequently Asked Questions

What are all the color codes for HSL(45, 80%, 23%)?

HEX: #6A520C | RGB: rgb(106, 82, 12) | CMYK: 0%, 23%, 89%, 58% | HSV: 45°, 89%, 42%. Copy any format from the conversion table above.

What colors go well with #6A520C?

The complementary color is HSL(225, 80%, 23%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(45, 80%, 23%) in CSS?

As HSL: color: hsl(45, 80%, 23%); — As HEX: color: #6A520C; — As RGB: color: rgb(106, 82, 12); — Tailwind CSS: bg-[hsl(45,80%,23%)] — CSS variable: --color-primary: hsl(45, 80%, 23%);