HSL(52, 30%, 52%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(52,30%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(52, 30%, 52%) color: hsl(52, 30%, 52%)
HEX #A9A060 color: #A9A060
RGB rgb(169, 160, 96) color: rgb(169, 160, 96)
CMYK cmyk(0%, 5%, 43%, 34%)
HSV hsv(53, 43%, 66%)
HWB hwb(53 38% 34%) color: hwb(53 38% 34%)
OKLCH oklch(0.6987 0.0852 101.32) color: oklch(0.6987 0.0852 101.32)
Lab lab(65.3 -6.07 34.47) color: lab(65.3 -6.07 34.47)
LCH lch(65.3 35 99.99) color: lch(65.3 35 99.99)

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 2.66:1
vs Black 7.88: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)

#A5A56F — rgb(165, 165, 111)

Deuteranopia (Green-blind)

#A6A673 — rgb(166, 166, 115)

Tritanopia (Blue-blind)

#A97C7E — rgb(169, 124, 126)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(52, 30%, 52%);

text

color: hsl(52, 30%, 52%);

border

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

gradient light

background: linear-gradient(to right, hsl(52, 30%, 72%), hsl(52, 30%, 52%));

gradient dark

background: linear-gradient(to right, hsl(52, 30%, 52%), hsl(52, 30%, 32%))

hex

background-color: #A9A060;

tailwind

bg-[hsl(52,30%,52%)]

box shadow

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

css variable

--color-primary: hsl(52, 30%, 52%);

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

HEX: #A9A060 | RGB: rgb(169, 160, 96) | CMYK: 0%, 5%, 43%, 34% | HSV: 53°, 43%, 66%. Copy any format from the conversion table above.

What colors go well with #A9A060?

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

As HSL: color: hsl(52, 30%, 52%); — As HEX: color: #A9A060; — As RGB: color: rgb(169, 160, 96); — Tailwind CSS: bg-[hsl(52,30%,52%)] — CSS variable: --color-primary: hsl(52, 30%, 52%);