Moccasin Color
HEX #FFE4B5 · rgb(255, 228, 181) · hsl(38, 100%, 85%)
Moccasin color codes
Moccasin is one of the named colors every browser understands. In CSS you can write it as moccasin or #FFE4B5.
| Format | Value | |
|---|---|---|
| HEX | #FFE4B5 | |
| RGB | rgb(255, 228, 181) | |
| HSL | hsl(38, 100%, 85%) | |
| CMYK | 0%, 11%, 29%, 0% | |
| CSS name | moccasin |
.example {
color: moccasin;
background-color: #FFE4B5;
border-color: rgb(255, 228, 181);
}
Colors that go with moccasin
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of moccasin
Tints mix the color with white; shades mix it with black.
Moccasin
Contrast and readability
17.02:1
passes AA and AAA
1.23:1
fails
Use black text on moccasin. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for moccasin?
The hex code for moccasin is #FFE4B5.
What is the RGB value of moccasin?
Moccasin is rgb(255, 228, 181): 255 red, 228 green and 181 blue on a 0 to 255 scale.
What color goes with moccasin?
Its complementary color is #B5D0FF, which is closest to the named color light blue. Analogous and triadic matches are listed on this page.
Should text on moccasin be black or white?
Use black text. The contrast ratio is 17.02:1 with black and 1.23:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.