CSS named color
Cornsilk
#FFF8DC
HEX
#fff8dcRGB
rgb(255, 248, 220)HSL
hsl(48, 100%, 93%)OKLCH
oklch(97.73% 0.0373 95.44)NAME
cornsilkPalette
Complementary
180° on the color wheelComplement
#DBE2FF
Analogous
±30° around the base hueLeft
#FFE6DB
Right
#F4FFDB
Triadic
±120° for harmonic contrastTriad 1
#DBFFF8
Triad 2
#F8DBFF
Shades
Lighter and darker variantsCSS 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.