Skip to content

Moccasin

Hex #FFE4B5, rgb(255 228 181). An orange CSS named color.

Open in palette generator

Moccasin color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Moccasin

Moccasin is a very light moderately saturated orange with the hex code #FFE4B5. In RGB it is made of 255 red, 228 green and 181 blue; in HSL its hue is 38°, with 100% saturation and 85% lightness. Its perceptual lightness (OKLCH L) is 93.0%.

It is a CSS named color, so you can write "moccasin" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.23:1 and against black 17.02:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Moccasin mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Moccasin 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Moccasin

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Monochromatic

Contrast and readability

WCAG 2 contrast of Moccasin with white and black. The readable text color on Moccasin is black.

Moccasin textSmall text on white

On white1.23:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 12

Moccasin textSmall text on black

On black17.02:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc -92

Black text on Moccasin (#000000)

Test any pair in the contrast checker.

Color blindness preview

How Moccasin appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#F0E3B2
  • Deuteranopia#F7EAB6
  • Tritanopia#FFDBD7
  • Protanomaly#F5E4B3
  • Deuteranomaly#F8E8B6
  • Tritanomaly#FFE1C6
  • Achromatopsia#E7E7E7

Colors similar to Moccasin

The closest named colors by perceptual difference (OKLab).

Use Moccasin in CSS and Tailwind

CSS
.moccasin {
  color: moccasin; /* #FFE4B5 */
  background-color: rgb(255 228 181);
  border-color: oklch(93% 0.068 81.4);
}
Tailwind CSS
/* Tailwind CSS v4: bg-moccasin-500, text-moccasin-700... */
@theme {
  --color-moccasin-50: #FFF9F0;
  --color-moccasin-100: #FFE4B5;
  --color-moccasin-200: #FFCD72;
  --color-moccasin-300: #F0AE00;
  --color-moccasin-400: #C48E00;
  --color-moccasin-500: #A87900;
  --color-moccasin-600: #906700;
  --color-moccasin-700: #755300;
  --color-moccasin-800: #5E4200;
  --color-moccasin-900: #4D3500;
  --color-moccasin-950: #201400;
}

<!-- or the exact color, no config -->
<div class="bg-[#FFE4B5] text-[#000000]">…</div>