HSL(56, 100%, 24%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(56,100%,24%)]

Color Conversions

Format Value CSS Usage
HSL hsl(56, 100%, 24%) color: hsl(56, 100%, 24%)
HEX #7A7200 color: #7A7200
RGB rgb(122, 114, 0) color: rgb(122, 114, 0)
CMYK cmyk(0%, 7%, 100%, 52%)
HSV hsv(56, 100%, 48%)
HWB hwb(56 0% 52%) color: hwb(56 0% 52%)
OKLCH oklch(0.5421 0.1149 104.73) color: oklch(0.5421 0.1149 104.73)
Lab lab(47.2 -8.08 53.03) color: lab(47.2 -8.08 53.03)
LCH lch(47.2 53.64 98.66) color: lch(47.2 53.64 98.66)

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 4.96:1
vs Black 4.23: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)

#77761C — rgb(119, 118, 28)

Deuteranopia (Green-blind)

#777822 — rgb(119, 120, 34)

Tritanopia (Blue-blind)

#7A3136 — rgb(122, 49, 54)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(56, 100%, 24%);

text

color: hsl(56, 100%, 24%);

border

border: 2px solid hsl(56, 100%, 24%);

gradient light

background: linear-gradient(to right, hsl(56, 100%, 44%), hsl(56, 100%, 24%));

gradient dark

background: linear-gradient(to right, hsl(56, 100%, 24%), hsl(56, 100%, 4%))

hex

background-color: #7A7200;

tailwind

bg-[hsl(56,100%,24%)]

box shadow

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

css variable

--color-primary: hsl(56, 100%, 24%);

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, 100%, 24%)?

HEX: #7A7200 | RGB: rgb(122, 114, 0) | CMYK: 0%, 7%, 100%, 52% | HSV: 56°, 100%, 48%. Copy any format from the conversion table above.

What colors go well with #7A7200?

The complementary color is HSL(236, 100%, 24%). 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, 100%, 24%) in CSS?

As HSL: color: hsl(56, 100%, 24%); — As HEX: color: #7A7200; — As RGB: color: rgb(122, 114, 0); — Tailwind CSS: bg-[hsl(56,100%,24%)] — CSS variable: --color-primary: hsl(56, 100%, 24%);