HSL(56, 50%, 59%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(56,50%,59%)]

Color Conversions

Format Value CSS Usage
HSL hsl(56, 50%, 59%) color: hsl(56, 50%, 59%)
HEX #CBC462 color: #CBC462
RGB rgb(203, 196, 98) color: rgb(203, 196, 98)
CMYK cmyk(0%, 3%, 52%, 20%)
HSV hsv(56, 52%, 80%)
HWB hwb(56 38% 20%) color: hwb(56 38% 20%)
OKLCH oklch(0.8059 0.1207 105.1) color: oklch(0.8059 0.1207 105.1)
Lab lab(77.91 -10.59 49.49) color: lab(77.91 -10.59 49.49)
LCH lch(77.91 50.61 102.08) color: lch(77.91 50.61 102.08)

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 1.81:1
vs Black 11.61:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#C8C87A — rgb(200, 200, 122)

Deuteranopia (Green-blind)

#C8C97F — rgb(200, 201, 127)

Tritanopia (Blue-blind)

#CB8C91 — rgb(203, 140, 145)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(56, 50%, 59%);

text

color: hsl(56, 50%, 59%);

border

border: 2px solid hsl(56, 50%, 59%);

gradient light

background: linear-gradient(to right, hsl(56, 50%, 79%), hsl(56, 50%, 59%));

gradient dark

background: linear-gradient(to right, hsl(56, 50%, 59%), hsl(56, 50%, 39%))

hex

background-color: #CBC462;

tailwind

bg-[hsl(56,50%,59%)]

box shadow

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

css variable

--color-primary: hsl(56, 50%, 59%);

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, 50%, 59%)?

HEX: #CBC462 | RGB: rgb(203, 196, 98) | CMYK: 0%, 3%, 52%, 20% | HSV: 56°, 52%, 80%. Copy any format from the conversion table above.

What colors go well with #CBC462?

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

As HSL: color: hsl(56, 50%, 59%); — As HEX: color: #CBC462; — As RGB: color: rgb(203, 196, 98); — Tailwind CSS: bg-[hsl(56,50%,59%)] — CSS variable: --color-primary: hsl(56, 50%, 59%);