HSL(45, 60%, 53%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(45,60%,53%)]

Color Conversions

Format Value CSS Usage
HSL hsl(45, 60%, 53%) color: hsl(45, 60%, 53%)
HEX #CFAB3F color: #CFAB3F
RGB rgb(207, 171, 63) color: rgb(207, 171, 63)
CMYK cmyk(0%, 17%, 70%, 19%)
HSV hsv(45, 70%, 81%)
HWB hwb(45 24% 19%) color: hwb(45 24% 19%)
OKLCH oklch(0.754 0.1302 90.17) color: oklch(0.754 0.1302 90.17)
Lab lab(71.39 1.72 58.13) color: lab(71.39 1.72 58.13)
LCH lch(71.39 58.16 88.31) color: lch(71.39 58.16 88.31)

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.2:1
vs Black 9.55: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)

#BFBF59 — rgb(191, 191, 89)

Deuteranopia (Green-blind)

#C2C45F — rgb(194, 196, 95)

Tritanopia (Blue-blind)

#CD6E72 — rgb(205, 110, 114)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(45, 60%, 53%);

text

color: hsl(45, 60%, 53%);

border

border: 2px solid hsl(45, 60%, 53%);

gradient light

background: linear-gradient(to right, hsl(45, 60%, 73%), hsl(45, 60%, 53%));

gradient dark

background: linear-gradient(to right, hsl(45, 60%, 53%), hsl(45, 60%, 33%))

hex

background-color: #CFAB3F;

tailwind

bg-[hsl(45,60%,53%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(45, 60%, 53%, 0.4);

css variable

--color-primary: hsl(45, 60%, 53%);

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(45, 60%, 53%)?

HEX: #CFAB3F | RGB: rgb(207, 171, 63) | CMYK: 0%, 17%, 70%, 19% | HSV: 45°, 70%, 81%. Copy any format from the conversion table above.

What colors go well with #CFAB3F?

The complementary color is HSL(225, 60%, 53%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(45, 60%, 53%) in CSS?

As HSL: color: hsl(45, 60%, 53%); — As HEX: color: #CFAB3F; — As RGB: color: rgb(207, 171, 63); — Tailwind CSS: bg-[hsl(45,60%,53%)] — CSS variable: --color-primary: hsl(45, 60%, 53%);