HSL(46, 70%, 80%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(46,70%,80%)]

Color Conversions

Format Value CSS Usage
HSL hsl(46, 70%, 80%) color: hsl(46, 70%, 80%)
HEX #F0DFA8 color: #F0DFA8
RGB rgb(240, 223, 168) color: rgb(240, 223, 168)
CMYK cmyk(0%, 7%, 30%, 6%)
HSV hsv(46, 30%, 94%)
HWB hwb(46 66% 6%) color: hwb(46 66% 6%)
OKLCH oklch(0.9043 0.0733 92.94) color: oklch(0.9043 0.0733 92.94)
Lab lab(88.98 -2.29 29.12) color: lab(88.98 -2.29 29.12)
LCH lch(88.98 29.21 94.5) color: lch(88.98 29.21 94.5)

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.33:1
vs Black 15.83: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)

#E9E8B5 — rgb(233, 232, 181)

Deuteranopia (Green-blind)

#EAEBB9 — rgb(234, 235, 185)

Tritanopia (Blue-blind)

#EFC0C2 — rgb(239, 192, 194)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(46, 70%, 80%);

text

color: hsl(46, 70%, 80%);

border

border: 2px solid hsl(46, 70%, 80%);

gradient light

background: linear-gradient(to right, hsl(46, 70%, 100%), hsl(46, 70%, 80%));

gradient dark

background: linear-gradient(to right, hsl(46, 70%, 80%), hsl(46, 70%, 60%))

hex

background-color: #F0DFA8;

tailwind

bg-[hsl(46,70%,80%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(46, 70%, 80%, 0.4);

css variable

--color-primary: hsl(46, 70%, 80%);

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(46, 70%, 80%)?

HEX: #F0DFA8 | RGB: rgb(240, 223, 168) | CMYK: 0%, 7%, 30%, 6% | HSV: 46°, 30%, 94%. Copy any format from the conversion table above.

What colors go well with #F0DFA8?

The complementary color is HSL(226, 70%, 80%). For a triadic harmony, use hues 46°, 166°, and 286°. For analogous combinations, try hues 16° and 76°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(46, 70%, 80%) in CSS?

As HSL: color: hsl(46, 70%, 80%); — As HEX: color: #F0DFA8; — As RGB: color: rgb(240, 223, 168); — Tailwind CSS: bg-[hsl(46,70%,80%)] — CSS variable: --color-primary: hsl(46, 70%, 80%);