HSL(52, 63%, 42%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(52,63%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(52, 63%, 42%) color: hsl(52, 63%, 42%)
HEX #AF9D28 color: #AF9D28
RGB rgb(175, 157, 40) color: rgb(175, 157, 40)
CMYK cmyk(0%, 10%, 77%, 31%)
HSV hsv(52, 77%, 69%)
HWB hwb(52 16% 31%) color: hwb(52 16% 31%)
OKLCH oklch(0.6917 0.1313 100.07) color: oklch(0.6917 0.1313 100.07)
Lab lab(64.47 -5.96 59.14) color: lab(64.47 -5.96 59.14)
LCH lch(64.47 59.44 95.75) color: lch(64.47 59.44 95.75)

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.74:1
vs Black 7.68: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)

#A7A744 — rgb(167, 167, 68)

Deuteranopia (Green-blind)

#A8AA4B — rgb(168, 170, 75)

Tritanopia (Blue-blind)

#AE5B60 — rgb(174, 91, 96)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(52, 63%, 42%);

text

color: hsl(52, 63%, 42%);

border

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

gradient light

background: linear-gradient(to right, hsl(52, 63%, 62%), hsl(52, 63%, 42%));

gradient dark

background: linear-gradient(to right, hsl(52, 63%, 42%), hsl(52, 63%, 22%))

hex

background-color: #AF9D28;

tailwind

bg-[hsl(52,63%,42%)]

box shadow

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

css variable

--color-primary: hsl(52, 63%, 42%);

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, 63%, 42%)?

HEX: #AF9D28 | RGB: rgb(175, 157, 40) | CMYK: 0%, 10%, 77%, 31% | HSV: 52°, 77%, 69%. Copy any format from the conversion table above.

What colors go well with #AF9D28?

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

As HSL: color: hsl(52, 63%, 42%); — As HEX: color: #AF9D28; — As RGB: color: rgb(175, 157, 40); — Tailwind CSS: bg-[hsl(52,63%,42%)] — CSS variable: --color-primary: hsl(52, 63%, 42%);