HSL(62, 75%, 21%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

bg-[hsl(62,75%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(62, 75%, 21%) color: hsl(62, 75%, 21%)
HEX #5B5E0D color: #5B5E0D
RGB rgb(91, 94, 13) color: rgb(91, 94, 13)
CMYK cmyk(3%, 0%, 86%, 63%)
HSV hsv(62, 86%, 37%)
HWB hwb(62 5% 63%) color: hwb(62 5% 63%)
OKLCH oklch(0.4642 0.097 111.89) color: oklch(0.4642 0.097 111.89)
Lab lab(38.3 -11.44 41.58) color: lab(38.3 -11.44 41.58)
LCH lch(38.3 43.13 105.38) color: lch(38.3 43.13 105.38)

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.88:1
vs Black 3.05: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)

#5C5C21 — rgb(92, 92, 33)

Deuteranopia (Green-blind)

#5C5C25 — rgb(92, 92, 37)

Tritanopia (Blue-blind)

#5B3033 — rgb(91, 48, 51)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(62, 75%, 21%);

text

color: hsl(62, 75%, 21%);

border

border: 2px solid hsl(62, 75%, 21%);

gradient light

background: linear-gradient(to right, hsl(62, 75%, 41%), hsl(62, 75%, 21%));

gradient dark

background: linear-gradient(to right, hsl(62, 75%, 21%), hsl(62, 75%, 1%))

hex

background-color: #5B5E0D;

tailwind

bg-[hsl(62,75%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(62, 75%, 21%, 0.4);

css variable

--color-primary: hsl(62, 75%, 21%);

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(62, 75%, 21%)?

HEX: #5B5E0D | RGB: rgb(91, 94, 13) | CMYK: 3%, 0%, 86%, 63% | HSV: 62°, 86%, 37%. Copy any format from the conversion table above.

What colors go well with #5B5E0D?

The complementary color is HSL(242, 75%, 21%). For a triadic harmony, use hues 62°, 182°, and 302°. For analogous combinations, try hues 32° and 92°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(62, 75%, 21%) in CSS?

As HSL: color: hsl(62, 75%, 21%); — As HEX: color: #5B5E0D; — As RGB: color: rgb(91, 94, 13); — Tailwind CSS: bg-[hsl(62,75%,21%)] — CSS variable: --color-primary: hsl(62, 75%, 21%);