HSL(50, 50%, 65%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(50,50%,65%)]

Color Conversions

Format Value CSS Usage
HSL hsl(50, 50%, 65%) color: hsl(50, 50%, 65%)
HEX #D2C479 color: #D2C479
RGB rgb(210, 196, 121) color: rgb(210, 196, 121)
CMYK cmyk(0%, 7%, 42%, 18%)
HSV hsv(51, 42%, 82%)
HWB hwb(51 48% 18%) color: hwb(51 48% 18%)
OKLCH oklch(0.8152 0.0968 98.97) color: oklch(0.8152 0.0968 98.97)
Lab lab(78.79 -5.57 39.36) color: lab(78.79 -5.57 39.36)
LCH lch(78.79 39.75 98.05) color: lch(78.79 39.75 98.05)

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.76:1
vs Black 11.91: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)

#CCCC8B — rgb(204, 204, 139)

Deuteranopia (Green-blind)

#CDCE90 — rgb(205, 206, 144)

Tritanopia (Blue-blind)

#D1999D — rgb(209, 153, 157)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(50, 50%, 65%);

text

color: hsl(50, 50%, 65%);

border

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

gradient light

background: linear-gradient(to right, hsl(50, 50%, 85%), hsl(50, 50%, 65%));

gradient dark

background: linear-gradient(to right, hsl(50, 50%, 65%), hsl(50, 50%, 45%))

hex

background-color: #D2C479;

tailwind

bg-[hsl(50,50%,65%)]

box shadow

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

css variable

--color-primary: hsl(50, 50%, 65%);

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

HEX: #D2C479 | RGB: rgb(210, 196, 121) | CMYK: 0%, 7%, 42%, 18% | HSV: 51°, 42%, 82%. Copy any format from the conversion table above.

What colors go well with #D2C479?

The complementary color is HSL(230, 50%, 65%). For a triadic harmony, use hues 50°, 170°, and 290°. For analogous combinations, try hues 20° and 80°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(50, 50%, 65%) in CSS?

As HSL: color: hsl(50, 50%, 65%); — As HEX: color: #D2C479; — As RGB: color: rgb(210, 196, 121); — Tailwind CSS: bg-[hsl(50,50%,65%)] — CSS variable: --color-primary: hsl(50, 50%, 65%);