HSL(52, 28%, 48%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(52,28%,48%)]

Color Conversions

Format Value CSS Usage
HSL hsl(52, 28%, 48%) color: hsl(52, 28%, 48%)
HEX #9D9458 color: #9D9458
RGB rgb(157, 148, 88) color: rgb(157, 148, 88)
CMYK cmyk(0%, 6%, 44%, 38%)
HSV hsv(52, 44%, 62%)
HWB hwb(52 35% 38%) color: hwb(52 35% 38%)
OKLCH oklch(0.6604 0.081 100.85) color: oklch(0.6604 0.081 100.85)
Lab lab(60.83 -5.52 32.84) color: lab(60.83 -5.52 32.84)
LCH lch(60.83 33.3 99.54) color: lch(60.83 33.3 99.54)

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 3.08:1
vs Black 6.81:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#999967 — rgb(153, 153, 103)

Deuteranopia (Green-blind)

#9A9A6A — rgb(154, 154, 106)

Tritanopia (Blue-blind)

#9D7275 — rgb(157, 114, 117)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(52, 28%, 48%);

text

color: hsl(52, 28%, 48%);

border

border: 2px solid hsl(52, 28%, 48%);

gradient light

background: linear-gradient(to right, hsl(52, 28%, 68%), hsl(52, 28%, 48%));

gradient dark

background: linear-gradient(to right, hsl(52, 28%, 48%), hsl(52, 28%, 28%))

hex

background-color: #9D9458;

tailwind

bg-[hsl(52,28%,48%)]

box shadow

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

css variable

--color-primary: hsl(52, 28%, 48%);

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(52, 28%, 48%)?

HEX: #9D9458 | RGB: rgb(157, 148, 88) | CMYK: 0%, 6%, 44%, 38% | HSV: 52°, 44%, 62%. Copy any format from the conversion table above.

What colors go well with #9D9458?

The complementary color is HSL(232, 28%, 48%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(52, 28%, 48%) in CSS?

As HSL: color: hsl(52, 28%, 48%); — As HEX: color: #9D9458; — As RGB: color: rgb(157, 148, 88); — Tailwind CSS: bg-[hsl(52,28%,48%)] — CSS variable: --color-primary: hsl(52, 28%, 48%);