HSL(56, 90%, 25%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(56,90%,25%)]

Color Conversions

Format Value CSS Usage
HSL hsl(56, 90%, 25%) color: hsl(56, 90%, 25%)
HEX #797106 color: #797106
RGB rgb(121, 113, 6) color: rgb(121, 113, 6)
CMYK cmyk(0%, 7%, 95%, 53%)
HSV hsv(56, 95%, 47%)
HWB hwb(56 2% 53%) color: hwb(56 2% 53%)
OKLCH oklch(0.5389 0.1123 104.55) color: oklch(0.5389 0.1123 104.55)
Lab lab(46.83 -7.87 51.4) color: lab(46.83 -7.87 51.4)
LCH lch(46.83 52 98.71) color: lch(46.83 52 98.71)

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 5.03:1
vs Black 4.18: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)

#767520 — rgb(118, 117, 32)

Deuteranopia (Green-blind)

#767726 — rgb(118, 119, 38)

Tritanopia (Blue-blind)

#793439 — rgb(121, 52, 57)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(56, 90%, 25%);

text

color: hsl(56, 90%, 25%);

border

border: 2px solid hsl(56, 90%, 25%);

gradient light

background: linear-gradient(to right, hsl(56, 90%, 45%), hsl(56, 90%, 25%));

gradient dark

background: linear-gradient(to right, hsl(56, 90%, 25%), hsl(56, 90%, 5%))

hex

background-color: #797106;

tailwind

bg-[hsl(56,90%,25%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(56, 90%, 25%, 0.4);

css variable

--color-primary: hsl(56, 90%, 25%);

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(56, 90%, 25%)?

HEX: #797106 | RGB: rgb(121, 113, 6) | CMYK: 0%, 7%, 95%, 53% | HSV: 56°, 95%, 47%. Copy any format from the conversion table above.

What colors go well with #797106?

The complementary color is HSL(236, 90%, 25%). For a triadic harmony, use hues 56°, 176°, and 296°. For analogous combinations, try hues 26° and 86°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(56, 90%, 25%) in CSS?

As HSL: color: hsl(56, 90%, 25%); — As HEX: color: #797106; — As RGB: color: rgb(121, 113, 6); — Tailwind CSS: bg-[hsl(56,90%,25%)] — CSS variable: --color-primary: hsl(56, 90%, 25%);