#F0F8AA Color Information

Hex color code: #F0F8AA

The hex color #F0F8AA is a ethereal yellow with RGB values of (240, 248, 170) and HSL of (66°, 85%, 82%). It is typically applied in digital products.

Try:
Color NameMoccasin
HEX
#F0F8AA
RGB
240, 248, 170
HSL
66°, 85%, 82%
CMYK
3%, 0%, 31%, 3%

Shades

CSS Usage
color: #F0F8AA;
background-color: #F0F8AA;
border-color: #F0F8AA;
box-shadow: 0 0 10px #F0F8AA;
border: 2px solid #F0F8AA;
Tailwind Usage
bg-[#F0F8AA]
text-[#F0F8AA]
border-[#F0F8AA]
shadow-[0_0_10px_F0F8AA]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #F0F8AA, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #F0F8AA; color: #000000; }

Badge

New Feature
.badge { background-color: #F0F8AA; color: #000000; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #F0F8AA; background-color: #F0F8AA15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #F0F8AA20; border-left: 4px solid #F0F8AA; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #F0F8AA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #F0F8AA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

240, 248, 170

Red: 240 / Green: 248 / Blue: 170

HSL

66°, 85%, 82%

Hue: 66° / Saturation: 85% / Lightness: 82%

CMYK

3%, 0%, 31%, 3%

Cyan: 3% / Magenta: 0% / Yellow: 31% / Key: 3%

What color is #F0F8AA?

#F0F8AA is a very light tint associated with purity and simplicity.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #F0F8AA to RGB:

rgb(240, 248, 170)HEX to RGB Converter →

HEX to HSL

Convert #F0F8AA to HSL:

hsl(66, 85%, 82%)RGB to HSL Converter →

HEX to CMYK

Convert #F0F8AA to CMYK:

cmyk(3%, 0%, 31%, 3%)Color Converter →

Color Meaning and Usage

A soft yellow tone, #F0F8AA has RGB (240, 248, 170) and HSL (66°, 85%, 82%). Known for evoking purity and simplicity, this very light tint is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #F0F8AA is #B2AAF8, creating high-contrast pairings. For softer combinations, try analogous colors like #F8D9AA.

Use #F0F8AA in CSS: color: #F0F8AA or background-color: #F0F8AA. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #F0F8AA

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 18.71:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #F0F8AA?

#F0F8AA is a soft yellow color - a very light tint that evokes purity and simplicity.

What is the RGB value of #F0F8AA?

#F0F8AA in RGB is (240, 248, 170) - 240 red, 248 green, and 170 blue.

How to use #F0F8AA in CSS?

Use #F0F8AA directly in your CSS properties like color or background-color.

What colors go well with #F0F8AA?

#B2AAF8 (complementary), #F8D9AA (analogous), and #E4F263 (lighter shade) work well with #F0F8AA.