CSS named color

Cornsilk

#FFF8DC
HEX#fff8dc
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)
OKLCHoklch(97.73% 0.0373 95.44)
NAMEcornsilk

Palette

Complementary

180° on the color wheel
Complement
#DBE2FF

Analogous

±30° around the base hue
Left
#FFE6DB
Right
#F4FFDB

Triadic

±120° for harmonic contrast
Triad 1
#DBFFF8
Triad 2
#F8DBFF

Shades

Lighter and darker variants
Lightest
#FFFDF5
Lighter
#FFFAE5
Base
#FFF8DC
Cornsilk
Darker
#FFE375
Darkest
#FFD429

CSS usage

By name
color: cornsilk;
background-color: cornsilk;
By HEX
color: #fff8dc;
background-color: #fff8dc;
By RGB
color: rgb(255, 248, 220);
background-color: rgb(255, 248, 220);
By HSL
color: hsl(48, 100%, 93%);
background-color: hsl(48, 100%, 93%);

WCAG contrast vs white

Aa
1.07:1
Below minimum

WCAG contrast vs black

Aa
19.71:1
AAA

Related colors

FAQ — Cornsilk

What is the HEX code for Cornsilk?

The HEX code for Cornsilk is #FFF8DC. It's one of the 148 named CSS colors and can be used directly in CSS as color: cornsilk; or color: #fff8dc;

What is Cornsilk in RGB?

Cornsilk in RGB is rgb(255, 248, 220) — red 255, green 248, blue 220.

What is Cornsilk in HSL?

Cornsilk in HSL is hsl(48, 100%, 93%) — hue 48°, saturation 100%, lightness 93%.

What is the complementary color of Cornsilk?

The complementary color (directly opposite Cornsilk on the color wheel) is #DBE2FF. The two together produce maximum contrast.

Is white text readable on Cornsilk?

The WCAG contrast ratio against white (#FFFFFF) is 1.07:1, and against black (#000000) it's 19.71:1. Black text is more readable. WCAG recommends at least 4.5:1 for body text.

← All colors & converter