moccasin — #FFE4B5
#FFE4B5
rgb(255, 228, 181) · hsl(38, 100%, 85%) · CSS keyword moccasin
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| moccasin on white | 1.23:1 | — | — |
| moccasin on black | 17.02:1 | AA | AA |
As a background, moccasin takes black text: 17.02:1 against 1.23:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: moccasin;
color: #ffe4b5;
color: rgb(255 228 181);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to moccasin
- bisque — #FFE4C4
- navajowhite — #FFDEAD
- wheat — #F5DEB3
- peachpuff — #FFDAB9
- blanchedalmond — #FFEBCD
- palegoldenrod — #EEE8AA
Frequently asked questions
What is the hex code for moccasin?
The hex code for moccasin is #FFE4B5 — RGB 255, 228, 181.
Can I use moccasin for text?
Not on a white background. moccasin reaches only 1.23:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on moccasin be black or white?
Black — 17.02:1 against 1.23:1 the other way.
Other named colours
- navajowhite — #FFDEAD
- navy — #000080
- oldlace — #FDF5E6
- olive — #808000
- olivedrab — #6B8E23
- orange — #FFA500
- orangered — #FF4500
- orchid — #DA70D6
- palegoldenrod — #EEE8AA
- palegreen — #98FB98
- paleturquoise — #AFEEEE
- palevioletred — #DB7093
#FFE4B5 in full — tints, shades and harmonies · All named colours · Colour reference