HSL(56, 52%, 66%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(56,52%,66%)]

Color Conversions

Format Value CSS Usage
HSL hsl(56, 52%, 66%) color: hsl(56, 52%, 66%)
HEX #D5CF7B color: #D5CF7B
RGB rgb(213, 207, 123) color: rgb(213, 207, 123)
CMYK cmyk(0%, 3%, 42%, 16%)
HSV hsv(56, 42%, 84%)
HWB hwb(56 49% 16%) color: hwb(56 49% 16%)
OKLCH oklch(0.841 0.1061 104.88) color: oklch(0.841 0.1061 104.88)
Lab lab(81.95 -9.8 42.38) color: lab(81.95 -9.8 42.38)
LCH lch(81.95 43.5 103.02) color: lch(81.95 43.5 103.02)

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.61:1
vs Black 13.04: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)

#D2D28F — rgb(210, 210, 143)

Deuteranopia (Green-blind)

#D3D394 — rgb(211, 211, 148)

Tritanopia (Blue-blind)

#D59FA3 — rgb(213, 159, 163)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(56, 52%, 66%);

text

color: hsl(56, 52%, 66%);

border

border: 2px solid hsl(56, 52%, 66%);

gradient light

background: linear-gradient(to right, hsl(56, 52%, 86%), hsl(56, 52%, 66%));

gradient dark

background: linear-gradient(to right, hsl(56, 52%, 66%), hsl(56, 52%, 46%))

hex

background-color: #D5CF7B;

tailwind

bg-[hsl(56,52%,66%)]

box shadow

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

css variable

--color-primary: hsl(56, 52%, 66%);

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, 52%, 66%)?

HEX: #D5CF7B | RGB: rgb(213, 207, 123) | CMYK: 0%, 3%, 42%, 16% | HSV: 56°, 42%, 84%. Copy any format from the conversion table above.

What colors go well with #D5CF7B?

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

As HSL: color: hsl(56, 52%, 66%); — As HEX: color: #D5CF7B; — As RGB: color: rgb(213, 207, 123); — Tailwind CSS: bg-[hsl(56,52%,66%)] — CSS variable: --color-primary: hsl(56, 52%, 66%);