Skip to content
PantoneTools
yellow
CSS Named Colors

Cornsilk

cornsilk · #FFF8DC

HEX

#FFF8DC

RGB

rgb(255, 248, 220)

CMYK

cmyk(0%, 3%, 14%, 0%)

HSL

hsl(48, 100%, 93%)

LAB

lab(97.5, -2.2, 14.3)

What is Cornsilk?

Cornsilk is the cornsilk reference in the CSS Named Colors. Its sRGB value is #FFF8DC (rgb 255, 248, 220). It sits in the yellow family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Cornsilk as a background.

Black text on this color

Sample text · 19.71 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 1.07 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Cornsilk

An 11-step tonal scale derived from Cornsilk (#FFF8DC). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #FFFEFC

50

#FFFEFC

#FFFEFC

Copied #FFFEF9

100

#FFFEF9

#FFFEF9

Copied #FFFDF4

200

#FFFDF4

#FFFDF4

Copied #FFFCEE

300

#FFFCEE

#FFFCEE

Copied #FFFAE5

400

#FFFAE5

#FFFAE5

Copied #FFF8DC

500

#FFF8DC

#FFF8DC

Copied #D9D3BB

600

#D9D3BB

#D9D3BB

Copied #A6A18F

700

#A6A18F

#A6A18F

Copied #737063

800

#737063

#737063

Copied #403E37

900

#403E37

#403E37

Copied #1F1E1A

950

#1F1E1A

#1F1E1A

Lighter tints (mixed with white)

Copied #FFF9E2

15%

#FFF9E2

Copied #FFFAE7

30%

#FFFAE7

Copied #FFFBED

45%

#FFFBED

Copied #FFFCF2

60%

#FFFCF2

Copied #FFFDF7

75%

#FFFDF7

Darker shades (mixed with black)

Copied #EDE7CD

15%

#EDE7CD

Copied #DAD4BC

30%

#DAD4BC

Copied #C4BEA8

45%

#C4BEA8

Copied #AAA592

60%

#AAA592

Copied #898575

75%

#898575

Color harmonies for Cornsilk

Classic color-theory harmonies derived from rotating the hue of Cornsilk. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #DBE2FF

#DBE2FF

#DBE2FF

Triadic

Three colors 120° apart

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #DBFFF8

#DBFFF8

#DBFFF8

Copied #F8DBFF

#F8DBFF

#F8DBFF

Analogous

Two neighbors ±30° on the wheel

Copied #FFE6DB

#FFE6DB

#FFE6DB

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #F4FFDB

#F4FFDB

#F4FFDB

Split-complementary

Base + two colors flanking its complement

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #DBF4FF

#DBF4FF

#DBF4FF

Copied #E6DBFF

#E6DBFF

#E6DBFF

Tetradic

Two complementary pairs

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #E2FFDB

#E2FFDB

#E2FFDB

Copied #DBE2FF

#DBE2FF

#DBE2FF

Copied #F8DBFF

#F8DBFF

#F8DBFF

Square

Four colors evenly spaced 90° apart

Copied #FFF8DC

#FFF8DC

#FFF8DC

Copied #DBFFE6

#DBFFE6

#DBFFE6

Copied #DBE2FF

#DBE2FF

#DBE2FF

Copied #FFDBF4

#FFDBF4

#FFDBF4

Cornsilk in every color space

Full conversion of Cornsilk across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#FFF8DC

RGB

rgb(255, 248, 220)

CMYK

cmyk(0%, 3%, 14%, 0%)

HSL

hsl(48, 100%, 93%)

HSV

hsv(48, 14%, 100%)

HWB

hwb(48 86% 0%)

CIE Lab

lab(97.5 -2.2 14.3)

OKLCH

oklch(97.7% 0.037 95.4)

XYZ (D65)

xyz(87.72, 93.56, 81.13)

Copy-ready code for Cornsilk

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #FFF8DC;
background-color: #FFF8DC;

CSS variable

:root {
  --color-cornsilk: #FFF8DC;
}

Tailwind config

// tailwind.config.js
colors: {
  'cornsilk': '#FFF8DC',
}

Sass

$color-cornsilk: #FFF8DC;

Swift UIColor

UIColor(red: 1.000, green: 0.973, blue: 0.863, alpha: 1.0)

Android XML

<color name="cornsilk">#FFF8DC</color>

Closest match in every color system

The nearest Cornsilk equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #EAE6CA

RAL 1013

#EAE6CA

Oyster white

Copied #FDF4E3

RAL 9001

#FDF4E3

Cream

Copied #E7EBDA

RAL 9002

#E7EBDA

Grey white

Copied #F6F6F6

RAL 9016

#F6F6F6

Traffic white

Copied #F4F4F4

RAL 9003

#F4F4F4

Signal white

Copied #FFFFFF

RAL 9010

#FFFFFF

Pure white

FAQ about Cornsilk

What is the HEX code for Cornsilk?

Cornsilk (cornsilk) has the HEX code #FFF8DC. In RGB it is rgb(255, 248, 220), and in CMYK it is cmyk(0%, 3%, 14%, 0%).

What is the OKLCH value of Cornsilk?

Cornsilk converts to oklch(0.977 0.037 95.4). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Cornsilk accessible for body text?

Used as a background, Cornsilk has a contrast ratio of 19.71:1 with black text and 1.07:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Cornsilk?

The closest Pantone reference to Cornsilk by ΔE2000 perceptual distance is Pantone 365 C (#D0DEBE). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Cornsilk?

The closest RAL Classic reference to Cornsilk by ΔE2000 distance is RAL 1013 (Oyster white, #EAE6CA). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Cornsilk?

The complementary color (180° opposite on the HSL color wheel) of Cornsilk is #DBE2FF. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
yellow

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Cornsilk — #FFF8DC | PantoneTools