Moccasin color codes
| CSS name | moccasin |
|---|---|
| HEX | #FFE4B5 |
| RGB | rgb(255, 228, 181) |
| HSL | hsl(38, 100%, 85%) |
| CMYK | cmyk(0%, 11%, 29%, 0%) |
| Decimal | 16770229 |
Shades of Moccasin (darker)
#E6CDA3 · #CCB691 · #B3A07F · #99896D · #80725B · #665B48 · #4D4436 · #332E24 · #1A1712
Tints of Moccasin (lighter)
#FFE7BC · #FFE9C4 · #FFECCB · #FFEFD3 · #FFF2DA · #FFF4E1 · #FFF7E9 · #FFFAF0 · #FFFCF8
Color harmonies
| Complementary | #B3CFFF |
|---|---|
| Triadic | #B3FFE3, #E3B3FF |
| Analogous | #FFBDB3, #F5FFB3 |
Accessibility (WCAG contrast)
| White text on Moccasin | 1.23:1 · Fail |
|---|---|
| Black text on Moccasin | 17.02:1 · AAA |
Use Moccasin in code
.element {
color: moccasin; /* or #ffe4b5 */
background-color: rgb(255 228 181 / 0.5);
}Frequently asked questions
What is the hex code for Moccasin?
Moccasin is #FFE4B5 in HEX, rgb(255, 228, 181) in RGB and hsl(38, 100%, 85%) in HSL.
Can I use "moccasin" directly in CSS?
Yes. "moccasin" is one of the 148 standard CSS named colors, so color: moccasin; works in every browser.
Is Moccasin readable on white?
The contrast ratio of Moccasin on white is 1.23:1 (WCAG Fail). On black it is 17.02:1 (AAA).
What is the complementary color of Moccasin?
The complementary color (opposite on the color wheel) is #B3CFFF.
Similar colors
Navajo White#FFDEADPeach Puff#FFDAB9Wheat#F5DEB3Bisque#FFE4C4Pale Goldenrod#EEE8AABlanched Almond#FFEBCDLemon Chiffon#FFFACDPapaya Whip#FFEFD5
Convert any color with the Color Converter, generate palettes with the Random Color Generator, or browse all 148 CSS color names.