Skip to content
PantoneTools
yellow
CSS Named Colors

Moccasin

moccasin · #FFE4B5

HEX

#FFE4B5

RGB

rgb(255, 228, 181)

CMYK

cmyk(0%, 11%, 29%, 0%)

HSL

hsl(38, 100%, 85%)

LAB

lab(91.7, 2.4, 26.4)

What is Moccasin?

Moccasin is the moccasin reference in the CSS Named Colors. Its sRGB value is #FFE4B5 (rgb 255, 228, 181). 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 Moccasin as a background.

Black text on this color

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

White text on this color

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

Shades, tints & tonal scale of Moccasin

An 11-step tonal scale derived from Moccasin (#FFE4B5). 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 #FFFDF9

50

#FFFDF9

#FFFDF9

Copied #FFFBF3

100

#FFFBF3

#FFFBF3

Copied #FFF6E7

200

#FFF6E7

#FFF6E7

Copied #FFF2DA

300

#FFF2DA

#FFF2DA

Copied #FFEBC8

400

#FFEBC8

#FFEBC8

Copied #FFE4B5

500

#FFE4B5

#FFE4B5

Copied #D9C29A

600

#D9C29A

#D9C29A

Copied #A69476

700

#A69476

#A69476

Copied #736751

800

#736751

#736751

Copied #40392D

900

#40392D

#40392D

Copied #1F1B16

950

#1F1B16

#1F1B16

Lighter tints (mixed with white)

Copied #FFE8C3

15%

#FFE8C3

Copied #FFEDCF

30%

#FFEDCF

Copied #FFF1DA

45%

#FFF1DA

Copied #FFF5E5

60%

#FFF5E5

Copied #FFF9EF

75%

#FFF9EF

Darker shades (mixed with black)

Copied #EDD4A8

15%

#EDD4A8

Copied #DAC39A

30%

#DAC39A

Copied #C4AF8A

45%

#C4AF8A

Copied #AA9777

60%

#AA9777

Copied #897A5F

75%

#897A5F

Color harmonies for Moccasin

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

Complementary

180° opposite — strongest contrast

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #B3CFFF

#B3CFFF

#B3CFFF

Triadic

Three colors 120° apart

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #B3FFE3

#B3FFE3

#B3FFE3

Copied #E3B3FF

#E3B3FF

#E3B3FF

Analogous

Two neighbors ±30° on the wheel

Copied #FFBDB3

#FFBDB3

#FFBDB3

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #F5FFB3

#F5FFB3

#F5FFB3

Split-complementary

Base + two colors flanking its complement

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #B3F5FF

#B3F5FF

#B3F5FF

Copied #BDB3FF

#BDB3FF

#BDB3FF

Tetradic

Two complementary pairs

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #CFFFB3

#CFFFB3

#CFFFB3

Copied #B3CFFF

#B3CFFF

#B3CFFF

Copied #E3B3FF

#E3B3FF

#E3B3FF

Square

Four colors evenly spaced 90° apart

Copied #FFE4B5

#FFE4B5

#FFE4B5

Copied #B3FFBD

#B3FFBD

#B3FFBD

Copied #B3CFFF

#B3CFFF

#B3CFFF

Copied #FFB3F5

#FFB3F5

#FFB3F5

Moccasin in every color space

Full conversion of Moccasin 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

#FFE4B5

RGB

rgb(255, 228, 181)

CMYK

cmyk(0%, 11%, 29%, 0%)

HSL

hsl(38, 100%, 85%)

HSV

hsv(38, 29%, 100%)

HWB

hwb(38 71% 0%)

CIE Lab

lab(91.7 2.4 26.4)

OKLCH

oklch(93.0% 0.068 81.4)

XYZ (D65)

xyz(77.32, 80.09, 55.09)

Copy-ready code for Moccasin

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: #FFE4B5;
background-color: #FFE4B5;

CSS variable

:root {
  --color-moccasin: #FFE4B5;
}

Tailwind config

// tailwind.config.js
colors: {
  'moccasin': '#FFE4B5',
}

Sass

$color-moccasin: #FFE4B5;

Swift UIColor

UIColor(red: 1.000, green: 0.894, blue: 0.710, alpha: 1.0)

Android XML

<color name="moccasin">#FFE4B5</color>

Closest match in every color system

The nearest Moccasin 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 #E6D690

RAL 1015

#E6D690

Light ivory

Copied #EAE6CA

RAL 1013

#EAE6CA

Oyster white

Copied #FDF4E3

RAL 9001

#FDF4E3

Cream

Copied #CAC4B0

RAL 7044

#CAC4B0

Silk grey

Copied #E7EBDA

RAL 9002

#E7EBDA

Grey white

Copied #C2B078

RAL 1001

#C2B078

Beige

FAQ about Moccasin

What is the HEX code for Moccasin?

Moccasin (moccasin) has the HEX code #FFE4B5. In RGB it is rgb(255, 228, 181), and in CMYK it is cmyk(0%, 11%, 29%, 0%).

What is the OKLCH value of Moccasin?

Moccasin converts to oklch(0.930 0.068 81.4). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Moccasin accessible for body text?

Used as a background, Moccasin has a contrast ratio of 17.02:1 with black text and 1.23: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 Moccasin?

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

What is the closest RAL color to Moccasin?

The closest RAL Classic reference to Moccasin by ΔE2000 distance is RAL 1015 (Light ivory, #E6D690). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Moccasin?

The complementary color (180° opposite on the HSL color wheel) of Moccasin is #B3CFFF. 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 · Moccasin — #FFE4B5 | PantoneTools